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

屬性值

Boolean

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

備註

啟用格線會在 內 Grid 的所有元素周圍建立虛線。 只有虛線可供使用,因為此屬性是偵錯版面配置問題的設計工具,不適用於生產品質程式碼。 如果您想要 在 Grid 內建立線條,請將 中的 Grid 專案樣式設定為具有框線。

相依性屬性資訊

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

適用於