Table of Contents

Class ExLineSeparator

Namespace
ExControls
Assembly
ExControls.dll

Horizontal or vertical line separating controls, with its own thickness, color and dash style.

[ToolboxBitmap(typeof(ToolboxIcons), "Toolbox.ExLineSeparator.ico")]
public class ExLineSeparator : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IThemeable
Inheritance
ExLineSeparator
Implements
Inherited Members
Extension Methods

Constructors

ExLineSeparator()

Initializes a new instance of the ExLineSeparator class with a 1 px solid light gray horizontal line.

public ExLineSeparator()

Properties

LineColor

Color of the LineSeparator's line

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the LineSeparator's line.")]
public Color LineColor { get; set; }

Property Value

Color

LineOrientation

Orientation of the LineSeparator's line

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Orientation of the LineSeparator's line.")]
public LineOrientation LineOrientation { get; set; }

Property Value

LineOrientation

LineStyle

Orientation of the LineSeparator's line

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Style of the LineSeparator's line.")]
public DashStyle LineStyle { get; set; }

Property Value

DashStyle

LineThickness

Thickness of the LineSeparator's line

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Thickness of the LineSeparator's line.")]
public int LineThickness { get; set; }

Property Value

int

Text

Gets or sets the text associated with this control.

[Browsable(false)]
[AllowNull]
public override string Text { get; set; }

Property Value

string

The text associated with this control.

Methods

ApplyTheme(ExTheme)

Sets the colors and appearance of the control by the theme.

public void ApplyTheme(ExTheme theme)

Parameters

theme ExTheme

OnLineColorChanged()

Raises the LineColorChanged event.

protected virtual void OnLineColorChanged()

OnLineDrawing(LinePenEventArgs)

Raises the LineDrawing event.

protected virtual void OnLineDrawing(LinePenEventArgs e)

Parameters

e LinePenEventArgs

A LinePenEventArgs with the pen used to draw the line.

OnLineOrientationChanged()

Raises the LineOrientationChanged event.

protected virtual void OnLineOrientationChanged()

OnLineStyleChanged()

Raises the LineStyleChanged event.

protected virtual void OnLineStyleChanged()

OnLineThicknessChanged()

Raises the LineThicknessChanged event.

protected virtual void OnLineThicknessChanged()

OnPaint(PaintEventArgs)

Raises the Paint event.

protected override void OnPaint(PaintEventArgs e)

Parameters

e PaintEventArgs

A PaintEventArgs that contains the event data.

Events

LineColorChanged

Occurs when the LineColor property changes.

[ExCategory("Changed Property")]
[ExDescription("Occurs when the LineColor property changes.")]
public event EventHandler? LineColorChanged

Event Type

EventHandler

LineDrawing

Occurs when the Line is drawing.

[ExCategory(CategoryType.Appearance)]
public event EventHandler<LinePenEventArgs>? LineDrawing

Event Type

EventHandler<LinePenEventArgs>

LineOrientationChanged

Occurs when the LineOrientation property changes.

[ExCategory("Changed Property")]
[ExDescription("Occurs when the LineOrientation property changes.")]
public event EventHandler? LineOrientationChanged

Event Type

EventHandler

LineStyleChanged

Occurs when the LineStyle property changes.

[ExCategory("Changed Property")]
public event EventHandler? LineStyleChanged

Event Type

EventHandler

LineThicknessChanged

Occurs when the LineThickness property changes.

[ExCategory("Changed Property")]
[ExDescription("Occurs when the LineThickness property changes.")]
public event EventHandler? LineThicknessChanged

Event Type

EventHandler