API Reference

Class

OdsDataStyle

Namespace OfficeIMO.OpenDocument
Assembly OfficeIMO.OpenDocument
Modifiers sealed

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.

Methods

public String ToExcelNumberFormatCode() #
Returns: String

Projects 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: Boolean

Attempts to project the represented common ODF style to a bounded Excel number-format code.

Parameters

formatCode System.String@ requiredposition: 0

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