Matrix.ToString 方法

定義

建立這個 String 結構的 Matrix 表示。Creates a String representation of this Matrix structure.

多載

ToString()

建立這個 String 結構的 Matrix 表示。Creates a String representation of this Matrix structure.

ToString(IFormatProvider)

使用文化特性特定格式資訊,建立這個 String 結構的 Matrix 表示。Creates a String representation of this Matrix structure with culture-specific formatting information.

備註

如果此Matrix結構是識別矩陣, 則會傳回字串 "identity"。If this Matrix structure is an identity matrix, the string "Identity" is returned.

ToString()

建立這個 String 結構的 Matrix 表示。Creates a String representation of this Matrix structure.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

傳回

String,包含這個 M11M12M21M22OffsetXOffsetYMatrix 值。A String containing the M11, M12, M21, M22, OffsetX, and OffsetY values of this Matrix.

備註

如果這Matrix Identity是矩陣, 則會傳回字串 "Identity"。If this Matrix is an Identity matrix, the string "Identity" is returned.

ToString(IFormatProvider)

使用文化特性特定格式資訊,建立這個 String 結構的 Matrix 表示。Creates a String representation of this Matrix structure with culture-specific formatting information.

public:
 System::String ^ ToString(IFormatProvider ^ provider);
public string ToString (IFormatProvider provider);
override this.ToString : IFormatProvider -> string
Public Function ToString (provider As IFormatProvider) As String

參數

provider
IFormatProvider

特定文化特性的格式資訊。The culture-specific formatting information.

傳回

String,包含這個 M11M12M21M22OffsetXOffsetYMatrix 值。A String containing the M11, M12, M21, M22, OffsetX, and OffsetY values of this Matrix.

備註

如果此Matrix結構是識別矩陣, 則會傳回字串 "identity"。If this Matrix structure is an identity matrix, the string "Identity" is returned.

適用於