Table of Contents

Class Separator

Namespace
PluginUI
Assembly
PluginUI.dll

A thin horizontal or vertical rule.

public class Separator : UIElement
Inheritance
Separator
Inherited Members

Constructors

Separator()

Creates a horizontal separator.

public Separator()

Separator(Orientation)

Creates a separator with an orientation.

public Separator(Orientation orientation)

Parameters

orientation Orientation

Properties

Color

Line color (null = theme border).

public Color? Color { get; set; }

Property Value

Color?

Orientation

Line direction.

public Orientation Orientation { get; set; }

Property Value

Orientation

Spacing

Empty space on both sides of the line, across it.

public float Spacing { get; set; }

Property Value

float

Thickness

Line thickness in DIPs (0 = one physical pixel).

public float Thickness { get; set; }

Property Value

float

Methods

MeasureOverride(Size)

Natural size of the content for the available size (margins excluded).

protected override Size MeasureOverride(Size available)

Parameters

available Size

Returns

Size

OnRender(DrawingContext)

Draws the element (below its children).

protected override void OnRender(DrawingContext dc)

Parameters

dc DrawingContext