TableCell::BorderBrush Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets a Brush to use when painting the element's border.

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

property Brush^ BorderBrush {
	Brush^ get();
	void set(Brush^ value);

Property Value

Type: System.Windows.Media::Brush^

The brush used to apply to the element's border.

The default value is a null brush.

For a table of swatches that show the available pre-defined brush colors, see Brushes.

Identifier field


Metadata properties set to true


The following example shows how to set the BorderBrush attribute of a Block element (Paragraph).

  <Paragraph Name="par"
      Child elements in this Block element (Paragraph) will be surrounded by a blue border.
      This border will be one quarter inch thick in all directions.

The following figure shows how this example renders.

Screenshot: Blue, 1/4inch border around Block

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

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

.NET Framework
Available since 3.0
Return to top