語言

Geometry.Parse(String) 方法

定義

從指定的字串使用目前的文化建立一個新 Geometry 實例。

public:
 static System::Windows::Media::Geometry ^ Parse(System::String ^ source);
public static System.Windows.Media.Geometry Parse(string source);
static member Parse : string -> System.Windows.Media.Geometry
Public Shared Function Parse (source As String) As Geometry

參數

source
String

一個描述要創造幾何形狀的字串。

傳回

由指定的字串建立一個新 Geometry 實例。

備註

關於此字串格式的資訊,請參見路徑標記語法

適用於