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합니다.

속성이 0 또는 null.인 경우 이 속성은 ColumnRuleWidth 영향을 주지 않습니다.

열 규칙은 두 개 이상의 열이 있는 경우에만 표시됩니다.

종속성 속성 정보

식별자 필드 ColumnRuleBrushProperty
메타 데이터 속성 설정 true AffectsRender

적용 대상

추가 정보