Table of Contents

ExLineSeparator

ExLineSeparator is a horizontal or vertical line that separates groups of controls, with its own thickness, color and dash style. WinForms has no such control, the usual workaround is a Label with a border and a height of 2 pixels.

Properties

Property Description
LineOrientation Horizontal (default) or Vertical.
LineThickness Thickness of the line, 1 px by default.
LineColor Color of the line, LightGray by default.
LineStyle Dash style of the line (DashStyle).

The line is drawn through the middle of the control, so the control can be taller (or wider) than the line and aligned with a label next to it. The LineDrawing event gets the Pen before the line is drawn.

Theme

The theme sets LineColor to BorderColor.

API