Export (0) Print
Expand All

TableCell.BorderBrush Property

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

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

member BorderBrush : Brush with get, set

Property Value

Type: System.Windows.Media.Brush
The brush used to apply to the element's border.
The default value is a null brush.

Identifier field


Metadata properties set to true


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

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

Supported in: 4.6, 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.

© 2014 Microsoft