共用方式為


FormatterExtensions.Write 方法 (SpatialFormatter<TextReader, TextWriter>, ISpatial)

寫入指定的格式器。

命名空間:  System.Spatial
組件:  System.Spatial (在 System.Spatial.dll 中)

語法

'宣告
<ExtensionAttribute> _
Public Shared Function Write ( _
    formatter As SpatialFormatter(Of TextReader, TextWriter), _
    spatial As ISpatial _
) As String
'用途
Dim formatter As SpatialFormatter(Of TextReader, TextWriter)
Dim spatial As ISpatial
Dim returnValue As String

returnValue = formatter.Write(spatial)
public static string Write(
    this SpatialFormatter<TextReader, TextWriter> formatter,
    ISpatial spatial
)
[ExtensionAttribute]
public:
static String^ Write(
    SpatialFormatter<TextReader^, TextWriter^>^ formatter, 
    ISpatial^ spatial
)
static member Write : 
        formatter:SpatialFormatter<TextReader, TextWriter> * 
        spatial:ISpatial -> string 
public static function Write(
    formatter : SpatialFormatter<TextReader, TextWriter>, 
    spatial : ISpatial
) : String

參數

傳回值

型別:System.String
格式化物件的字串值。

使用注意事項

在 Visual Basic 及 C# 中,您可以在任何型別 SpatialFormatter<TextReader, TextWriter> 的物件上將這個方法做為執行個體方法呼叫。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱 https://msdn.microsoft.com/zh-tw/library/bb384936(v=vs.103)https://msdn.microsoft.com/zh-tw/library/bb383977(v=vs.103)

請參閱

參考

FormatterExtensions 類別

Write 多載

System.Spatial 命名空間