PathFigure.IsFilled 屬性

定義

取得或設定是否使用這個 PathFigure 所含區域進行點擊測試 (Hit-Test)、轉譯和裁剪。

public:
 property bool IsFilled { bool get(); void set(bool value); };
public bool IsFilled { get; set; }
member this.IsFilled : bool with get, set
Public Property IsFilled As Boolean

屬性值

Boolean

決定是否要使用這個 PathFigure 所含區域進行點擊測試 (Hit-Test)、轉譯和裁剪。 預設值是 true

備註

如果這個屬性設定為 false ,則只會使用 的 PathFigure 大綱,而且其包含的區域不會對 的整體區域 PathFigure 造成貢獻。

這個屬性的其中一個用法是允許填滿的筆劃,否則會填 Geometry 滿 ,就像下面左笑臉中的笑臉一樣。 將笑臉設定為 IsFilled true ,可能會產生右笑臉中不想要的笑臉效果。

已填入笑臉的路徑
IsFilled 範例

相依性屬性資訊

識別碼欄位 IsFilledProperty
中繼資料屬性設定為 true

適用於