Struct FormatInfo
儲存格式化資訊的唯讀值型別。
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
typeFormatType
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
typeFormatTypedecimalPlacesint
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
typeFormatTypedecimalPlacesintminIntegerDigitsint
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
typeFormatTypedecimalPlacesintminIntegerDigitsintgroupingbool
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
typeFormatTypedecimalPlacesintminIntegerDigitsintgroupingboolcurrencySymbolstring
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
typeFormatType格式類型
decimalPlacesint小數位數
minIntegerDigitsint最小整數位數
groupingbool指出是否使用千分位分組
currencySymbolstring貨幣符號
dateTimeTokensIReadOnlyList<DateTimeToken>日期時間格式的語彙基元集合
Properties
CurrencySymbol
Gets the CurrencySymbol value. 取得貨幣符號。
public string CurrencySymbol { get; }
Property Value
DateTimeTokens
Provides the DateTimeTokens member. 取得日期時間格式的語彙基元集合。
public IReadOnlyList<DateTimeToken> DateTimeTokens { get; }
Property Value
DecimalPlaces
Gets the DecimalPlaces value. 取得小數位數。
public int DecimalPlaces { get; }
Property Value
Grouping
Gets a value indicating the Grouping state. 取得一個值,指出是否使用千分位分組。
public bool Grouping { get; }
Property Value
MinIntegerDigits
Gets the MinIntegerDigits value. 取得最小整數位數。
public int MinIntegerDigits { get; }
Property Value
Type
Gets the Type value. 取得格式類型。
public FormatType Type { get; }