語言

Grid.ShowGridLines 屬性

定義

取得或設定一個值,指示格線是否可見於此 Grid範圍內。

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

屬性值

true如果網格線可見;否則,。 false 預設值為 false。

備註

啟用格線後,會在 內 Grid所有元素周圍產生虛線。 僅有虛線可用,因為此特性設計用於除錯版面問題,並非用於生產品質程式碼。 如果你想在 內 Grid面的線條,則要讓元素 Grid 在 內面有邊界。

相依財產資訊

Item 價值觀
識別碼欄位 ShowGridLinesProperty
元資料屬性設為 true None

適用於