API Reference
Class
OdsDataStyle
An XML-backed ODS number, percentage, currency, date, or time style.
Inheritance
- Object
- OdsDataStyle
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method OdsDocument.AddCurrencyStyle
- Method OdsDocument.AddDateStyle
- Method OdsDocument.AddNumberStyle
- Method OdsDocument.AddPercentageStyle
- Method OdsDocument.AddTimeStyle
- Property OdsDocument.DataStyles
Methods
public String ToExcelNumberFormatCode() #Returns:
StringProjects the represented common ODF style to an Excel number-format code.
Exceptions
InvalidOperationException– The style cannot be represented within Excel's custom-format limit.
public Boolean TryGetExcelNumberFormatCode(out String formatCode) #Returns:
BooleanAttempts to project the represented common ODF style to a bounded Excel number-format code.
Parameters
- formatCode System.String@
Inherited Methods
Properties
public String Name { get; } #Style name referenced by a cell style.
public OdsDataStyleKind Kind { get; } #Data style kind.
public Int32 DecimalPlaces { get; } #Configured decimal places, or zero when the style has no decimal number component.
public Int32 MinimumIntegerDigits { get; } #Minimum integer digits requested by the number component.
public Boolean UsesGrouping { get; } #Whether the style requests grouped thousands.
public String CurrencySymbol { get; } #Visible currency symbol or code, when present.
Fields
public const Int32 MaximumExcelNumberFormatCodeLength #Maximum number of characters supported by an Excel custom number-format code.
Value:
255