DataGrid.HorizontalGridLinesBrush 屬性

定義

取得或設定用來繪製水平格線的筆刷。

public:
 property System::Windows::Media::Brush ^ HorizontalGridLinesBrush { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush HorizontalGridLinesBrush { get; set; }
member this.HorizontalGridLinesBrush : System.Windows.Media.Brush with get, set
Public Property HorizontalGridLinesBrush As Brush

屬性值

Brush

用於繪製 DataGrid 中水平格線的筆刷。 登錄預設值為黑色 SolidColorBrush。 如需哪些因素會影響值的詳細資訊,請參閱 DependencyProperty

備註

水準格線會分隔 中的資料 DataGrid 列。 如果 屬性設定為 VerticalNone ,這個 GridLinesVisibility 屬性就不會有任何作用。

適用於

另請參閱