Table of Contents

Class LabelStyle

Namespace
Myra.Graphics2D.UI.Styles
Assembly
Myra.dll

Style class that defines the visual appearance of label and text widgets.

public class LabelStyle : WidgetStyle
Inheritance
LabelStyle
Inherited Members

Constructors

LabelStyle()

Initializes a new instance of the LabelStyle class.

public LabelStyle()

LabelStyle(LabelStyle)

Initializes a new instance of the LabelStyle class by copying properties from another style.

public LabelStyle(LabelStyle style)

Parameters

style LabelStyle

The source label style to copy from.

Properties

DisabledTextColor

Gets or sets the color of the label's text when the widget is disabled, or null to use the default.

public Color? DisabledTextColor { get; set; }

Property Value

Color?

FocusedTextColor

Gets or sets the color of the label's text when the widget has focus, or null to use the default.

public Color? FocusedTextColor { get; set; }

Property Value

Color?

Font

Gets or sets the font used to render the label's text.

public SpriteFontBase Font { get; set; }

Property Value

SpriteFontBase

OverTextColor

Gets or sets the color of the label's text when the mouse is over the widget, or null to use the default.

public Color? OverTextColor { get; set; }

Property Value

Color?

PressedTextColor

Gets or sets the color of the label's text when the widget is pressed, or null to use the default.

public Color? PressedTextColor { get; set; }

Property Value

Color?

TextColor

Gets or sets the color of the label's text.

public Color TextColor { get; set; }

Property Value

Color

Methods

Clone()

Creates a deep copy of this label style.

public override WidgetStyle Clone()

Returns

WidgetStyle

A new LabelStyle instance with the same properties.