Table of Contents

Class HorizontalSeparator

Namespace
Myra.Graphics2D.UI
Assembly
Myra.dll

A horizontal separator widget that visually divides UI sections.

public class HorizontalSeparator : SeparatorWidget, IItemWithId, INotifyAttachedPropertyChanged
Inheritance
HorizontalSeparator
Implements
Inherited Members

Constructors

HorizontalSeparator(Stylesheet, string)

Initializes a new instance of the HorizontalSeparator class with the specified stylesheet and style.

public HorizontalSeparator(Stylesheet stylesheet, string styleName = "")

Parameters

stylesheet Stylesheet

The stylesheet to use for applying the style.

styleName string

The name of the style to apply. Defaults to the default stylesheet style.

HorizontalSeparator(string)

Initializes a new instance of the HorizontalSeparator class with the specified style.

public HorizontalSeparator(string styleName = "")

Parameters

styleName string

The name of the style to apply. Defaults to the default stylesheet style.

Properties

HorizontalAlignment

Gets or sets the horizontal alignment of the separator.

public override HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

HorizontalAlignment

Orientation

Gets the orientation of the separator, which is always horizontal.

public override Orientation Orientation { get; }

Property Value

Orientation

VerticalAlignment

Gets or sets the vertical alignment of the separator.

public override VerticalAlignment VerticalAlignment { get; set; }

Property Value

VerticalAlignment