StandardFormat 構造体
定義
実際の文字列を使用せずに標準書式の文字列を表します。Represents a standard format string without using an actual string.
public value class StandardFormat : IEquatable<System::Buffers::StandardFormat>
public struct StandardFormat : IEquatable<System.Buffers.StandardFormat>
type StandardFormat = struct
Public Structure StandardFormat
Implements IEquatable(Of StandardFormat)
- 継承
- 実装
注釈
オブジェクトは、 StandardFormat
1 文字の標準書式指定子 (' G '、' d '、' X ' など) と省略可能な精度指定子で構成されます。A StandardFormat
object consists of a single character standard format specifier (such as 'G', 'D', or 'X') and an optional precision specifier. 精度指定子は、0 ~ 9 の範囲で指定することも、特殊な値にすることもでき StandardFormat.NoPrecision ます。The precision specifier can range from 0 to 9, or it can be the special StandardFormat.NoPrecision value.
コンストラクター
StandardFormat(Char, Byte) |
StandardFormat 構造体の新しいインスタンスを初期化します。Initializes a new instance of the StandardFormat structure. |
フィールド
MaxPrecision |
最大有効桁数の値を定義します。Defines the maximum valid precision value. |
NoPrecision |
書式が有効桁数を使用しないか、有効桁数が指定されていないことを示します。Indicates that a format doesn't use a precision or that the precision is unspecified. |
プロパティ
HasPrecision |
書式に定義された有効桁数が含まれるかどうかを示す値を取得します。Gets a value that indicates whether a format has a defined precision. |
IsDefault |
現在のインスタンスが既定の書式かどうかを示す値を取得します。Gets a value that indicates whether the current instance is a default format. |
Precision |
書式の有効桁数のコンポーネントを取得します。Gets the precision component of the format. |
Symbol |
書式の文字のコンポーネントを取得します。Gets the character component of the format. |
メソッド
Equals(Object) |
指定したオブジェクトが、現在のインスタンスと等しい StandardFormat オブジェクトであるかどうかを示す値を返します。Returns a value that indicates whether the specified object is a StandardFormat object that is equal to the current instance. |
Equals(StandardFormat) |
指定した StandardFormat が現在のインスタンスと等しいかどうかを示す値を返します。Returns a value that indicates whether the specified StandardFormat is equal to the current instance. |
GetHashCode() |
このインスタンスのハッシュ コードを返します。Returns the hash code for this instance. |
Parse(ReadOnlySpan<Char>) |
NoPrecision の有効桁数を使用して、 |
Parse(String) |
従来の .NET 標準書式文字列を StandardFormat インスタンスに変換します。Converts a classic .NET standard format string to a StandardFormat instance. |
ToString() |
この書式の文字列表現を返します。Returns the string representation of this format. |
TryParse(ReadOnlySpan<Char>, StandardFormat) |
StandardFormat インスタンスへの |
演算子
Equality(StandardFormat, StandardFormat) |
2 つの StandardFormat インスタンスが等しいかどうかを示す値を返します。Returns a value that indicates whether two StandardFormat instances are equal. |
Implicit(Char to StandardFormat) |
NoPrecision の有効桁数を使用して、文字を StandardFormat インスタンスに変換します。Converts a character to a StandardFormat instance using NoPrecision precision. |
Inequality(StandardFormat, StandardFormat) |
2 つの StandardFormat インスタンスが等しくないかどうかを判断します。Determines whether two StandardFormat instances are unequal. |