# OdfDataStyle

A native ODF data-style definition with its original package scope.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OdfDataStyle.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfDataStyle.cs#L17)

**Modifiers**

sealed

A native ODF data-style definition with its original package scope.

## Inheritance

- object
- OdfDataStyle

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Method [OdfStyleRepository.CreateDateStyle](/api/open-document/officeimo-opendocument-odfstylerepository/#method-createdatestyle-string)
- Method [OdfStyleRepository.CreateTimeStyle](/api/open-document/officeimo-opendocument-odfstylerepository/#method-createtimestyle-string)
- Method [OdfStyleRepository.FindDataStyle](/api/open-document/officeimo-opendocument-odfstylerepository/#method-finddatastyle-string-string)

Filter members 

Show inherited

## Methods

`public XElement ToXml()` [#](#method-toxml)

[OdfDataStyle.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfDataStyle.cs#L17)

Returns an independent inspection copy of all native attributes and components.

Returns

`XElement`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; }` [#](#property-name)

[OdfDataStyle.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfDataStyle.cs#L9)

Name used by native data-style references.

`public string ElementName { get; }` [#](#property-elementname)

[OdfDataStyle.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfDataStyle.cs#L11)

Native definition kind, such as date-style, time-style, or number-style.

`public string PartPath { get; }` [#](#property-partpath)

[OdfDataStyle.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfDataStyle.cs#L13)

Package part containing this definition.

`public bool IsAutomatic { get; }` [#](#property-isautomatic)

[OdfDataStyle.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Styles/OdfDataStyle.cs#L15)

Whether the definition is part-local automatic styling.

<!-- PowerForge markdown artifact sha256:329291FCCFCFB9CC424A2F69D1C1FD8C24711C0B06AA1F53DA46E5C208067CE5 -->
