FlowDocument::ColumnRuleBrush Property

Gets or sets the Brush used to draw the rule between columns.

Namespace:  System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
property Brush^ ColumnRuleBrush {
	Brush^ get ();
	void set (Brush^ value);
}

Property Value

Type: System.Windows.Media::Brush
A Brush to use when drawing the rule line between columns, or nullptr to not use a background brush. The default is nullptr.

Identifier field

ColumnRuleBrushProperty

Metadata properties set to true

AffectsRender

The column rule is a line that is drawn between columns, and is used to visually separate columns of content.

For a table of swatches that show the available predefined brush colors, see Brushes.

This property has no effect if the ColumnRuleWidth property is 0 or nullptr.

Column rules are displayed only when there are two or more columns.

The following example shows how to set the ColumnRuleBrush property programmatically.

No code example is currently available or this language may not be supported.

More Code

How to: Use FlowDocument Column-Separating AttributesThis example shows how to use the column-separating features of a FlowDocument.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft