Back to Devexpress

BorderSide Enum

corelibraries-devexpress-dot-xtraprinting-3c39a6cf.md

latest2.0 KB
Original Source

BorderSide Enum

Specifies the borders displayed around a brick.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
[Flags]
[ResourceFinder(typeof(ResFinder))]
public enum BorderSide
vb
<Flags>
<ResourceFinder(GetType(ResFinder))>
Public Enum BorderSide

Members

NameDescription
None

No borders are applied to a brick.

| | Left |

Applies the left border to a brick.

| | Top |

Applies the top border to a brick.

| | Right |

Applies the right border to a brick.

| | Bottom |

Applies the bottom border to a brick.

| | All |

Applies all borders to a brick.

|

Remarks

Use the BorderSide enumeration to draw borders around brick sides (any combination is possible). Side width is determined via the VisualBrick.BorderWidth property and its color is specified via the VisualBrick.BorderColor property.

Example

The following example demonstrates how to make the brick’s left and right borders visible. To do this it’s necesssary to set the BrickStyle.Sides property of the brick’s style to BorderSide.Left and BorderSide.Right.

csharp
using DevExpress.XtraPrinting;
// ...

myBrickStyle.Sides = BorderSide.Left | BorderSide.Right;
vb
Imports DevExpress.XtraPrinting
' ...

MyBrickStyle.Sides = BorderSide.Left Or BorderSide.Right

See Also

DevExpress.XtraPrinting Namespace