Class
OdsDataStyle
OfficeIMO.OpenDocument
An XML-backed ODS number, percentage, currency, date, or time style.
Inheritance
- object
- OdsDataStyle
Usage
Explore 6 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 6
- Method OdsDocument.AddCurrencyStyle
- Method OdsDocument.AddDateStyle
- Method OdsDocument.AddNumberStyle
- Method OdsDocument.AddPercentageStyle
- Method OdsDocument.AddTimeStyle
- Property OdsDocument.DataStyles
Methods
public string ToExcelNumberFormatCode() #Projects the represented common ODF style to an Excel number-format code.
Returns
stringExceptions
InvalidOperationException– The style cannot be represented within Excel's custom-format limit.
public bool TryGetExcelNumberFormatCode(out string formatCode) #Attempts to project the represented common ODF style to a bounded Excel number-format code.
Parameters
- formatCode string
Returns
boolInherited Methods
Properties
public int DecimalPlaces { get; } #Configured decimal places, or zero when the style has no decimal number component.
public int MinimumIntegerDigits { get; } #Minimum integer digits requested by the number component.
public string? CurrencySymbol { get; } #Visible currency symbol or code, when present.
Fields
public const int MaximumExcelNumberFormatCodeLength #Maximum number of characters supported by an Excel custom number-format code.
Value:
255