FlowDocument.ColumnRuleBrush 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 , Brush 用來在欄位間繪製規則。
public:
property System::Windows::Media::Brush ^ ColumnRuleBrush { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush ColumnRuleBrush { get; set; }
member this.ColumnRuleBrush : System.Windows.Media.Brush with get, set
Public Property ColumnRuleBrush As Brush
屬性值
Brush A 用於在畫欄間的規則線,或null是不使用背景畫筆。 預設值為 null。
範例
下列示範如何以程式設計的方式設定 Typography 屬性。
FlowDocument flowDoc = new FlowDocument(new Paragraph(new Run("A bit of text content...")));
// Set a column rule two pixels wide colored Dodger blue.
flowDoc.ColumnRuleWidth = 2.0;
flowDoc.ColumnRuleBrush = Brushes.DodgerBlue;
Dim flowDocColRule As New FlowDocument(New Paragraph(New Run("A bit of text content...")))
' Set a column rule two pixels wide colored Dodger blue.
flowDocColRule.ColumnRuleWidth = 2.0
flowDocColRule.ColumnRuleBrush = Brushes.DodgerBlue
備註
欄位規則是一條在欄位間畫出的線,用來視覺化區分內容欄位。
關於顯示可用預設畫筆顏色的色片表,請參見 Brushes。
當該 ColumnRuleWidth 性質為 0 或 null時,該性質無效。
欄位規則僅在有兩個或以上欄位時顯示。
相依財產資訊
| 項目 | 價值 |
|---|---|
| 識別碼欄位 | ColumnRuleBrushProperty |
元資料屬性設為 true |
AffectsRender |