Table of Contents

Struct FormatInfo

Namespace
OdfKit.Styles
Assembly
OdfKit.dll

儲存格式化資訊的唯讀值型別。

public readonly struct FormatInfo
Inherited Members

Constructors

FormatInfo()

Short overload of FormatInfo that uses default values for all optional parameters and forwards to the full overload. 便利多載:FormatInfo 的所有可選參數使用預設值並轉呼叫最長多載。

public FormatInfo()

FormatInfo(FormatType)

Short overload of FormatInfo that accepts type; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 type;其餘可選參數使用預設值並轉呼叫最長 FormatInfo 多載。

public FormatInfo(FormatType type)

Parameters

type FormatType

FormatInfo(FormatType, int)

Short overload of FormatInfo that accepts type and decimalPlaces; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 type 與 decimalPlaces;其餘可選參數使用預設值並轉呼叫最長 FormatInfo 多載。

public FormatInfo(FormatType type, int decimalPlaces)

Parameters

type FormatType
decimalPlaces int

FormatInfo(FormatType, int, int)

Short overload of FormatInfo that accepts type, decimalPlaces, and minIntegerDigits; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 type、decimalPlaces 與 minIntegerDigits;其餘可選參數使用預設值並轉呼叫最長 FormatInfo 多載。

public FormatInfo(FormatType type, int decimalPlaces, int minIntegerDigits)

Parameters

type FormatType
decimalPlaces int
minIntegerDigits int

FormatInfo(FormatType, int, int, bool)

Short overload of FormatInfo that accepts type, decimalPlaces, minIntegerDigits, and grouping; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 type、decimalPlaces、minIntegerDigits 與 grouping;其餘可選參數使用預設值並轉呼叫最長 FormatInfo 多載。

public FormatInfo(FormatType type, int decimalPlaces, int minIntegerDigits, bool grouping)

Parameters

type FormatType
decimalPlaces int
minIntegerDigits int
grouping bool

FormatInfo(FormatType, int, int, bool, string?)

Short overload of FormatInfo that accepts type, decimalPlaces, minIntegerDigits, grouping, and currencySymbol; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 type、decimalPlaces、minIntegerDigits、grouping 與 currencySymbol;其餘可選參數使用預設值並轉呼叫最長 FormatInfo 多載。

public FormatInfo(FormatType type, int decimalPlaces, int minIntegerDigits, bool grouping, string? currencySymbol)

Parameters

type FormatType
decimalPlaces int
minIntegerDigits int
grouping bool
currencySymbol string

FormatInfo(FormatType, int, int, bool, string?, IReadOnlyList<DateTimeToken>?)

Formats info. 初始化 FormatInfo 結構的新執行個體。

public FormatInfo(FormatType type, int decimalPlaces, int minIntegerDigits, bool grouping, string? currencySymbol, IReadOnlyList<DateTimeToken>? dateTimeTokens)

Parameters

type FormatType

格式類型

decimalPlaces int

小數位數

minIntegerDigits int

最小整數位數

grouping bool

指出是否使用千分位分組

currencySymbol string

貨幣符號

dateTimeTokens IReadOnlyList<DateTimeToken>

日期時間格式的語彙基元集合

Properties

CurrencySymbol

Gets the CurrencySymbol value. 取得貨幣符號。

public string CurrencySymbol { get; }

Property Value

string

DateTimeTokens

Provides the DateTimeTokens member. 取得日期時間格式的語彙基元集合。

public IReadOnlyList<DateTimeToken> DateTimeTokens { get; }

Property Value

IReadOnlyList<DateTimeToken>

DecimalPlaces

Gets the DecimalPlaces value. 取得小數位數。

public int DecimalPlaces { get; }

Property Value

int

Grouping

Gets a value indicating the Grouping state. 取得一個值,指出是否使用千分位分組。

public bool Grouping { get; }

Property Value

bool

MinIntegerDigits

Gets the MinIntegerDigits value. 取得最小整數位數。

public int MinIntegerDigits { get; }

Property Value

int

Type

Gets the Type value. 取得格式類型。

public FormatType Type { get; }

Property Value

FormatType