FlowDocument.ColumnRuleBrush プロパティ

定義

列間ルールの描画に使用する 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

列間の罫線を描画するときに使用する Brush、または背景ブラシを使用しないようにする null。 既定値は、null です。

次の例では、ColumnRuleBrush プロパティをプログラムで設定する方法を示しています。

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.

列ルールは、2 つ以上の列がある場合にのみ表示されます。

依存プロパティ情報

識別子フィールド ColumnRuleBrushProperty
に設定されたメタデータ プロパティ true AffectsRender

適用対象

こちらもご覧ください