Class SpinBox

Namespace
Forma
Assembly
Forma.dll

Edits a numeric range through text entry, arrow stepping, keyboard input, or vertical dragging.

[TemplatePart("PART_Editor", typeof(ContentPresenter), true)]
public sealed class SpinBox : Range, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
Inheritance
SpinBox
Implements
Inherited Members

Constructors

SpinBox()

public SpinBox()

Fields

EditorPartName

public const string EditorPartName = "PART_Editor"

Field Value

string

Properties

AccessibilityRole

public override AccessibilityRole AccessibilityRole { get; }

Property Value

AccessibilityRole

CustomArrowRound

public bool CustomArrowRound { get; set; }

Property Value

bool

CustomArrowStep

public float CustomArrowStep { get; set; }

Property Value

float

Font

public SpriteFont Font { get; set; }

Property Value

SpriteFont

IsDraggingValue

public bool IsDraggingValue { get; }

Property Value

bool

LineEdit

public SpinBoxLineEdit LineEdit { get; }

Property Value

SpinBoxLineEdit

Prefix

public string Prefix { get; set; }

Property Value

string

Suffix

public string Suffix { get; set; }

Property Value

string

UIFont

public UIFont UIFont { get; set; }

Property Value

UIFont

UpdateOnTextChanged

public bool UpdateOnTextChanged { get; set; }

Property Value

bool

Methods

Apply()

public void Apply()

GetCustomArrowStep()

public float GetCustomArrowStep()

Returns

float

GetHorizontalAlignment()

public HorizontalAlignment GetHorizontalAlignment()

Returns

HorizontalAlignment

GetLineEdit()

public LineEdit GetLineEdit()

Returns

LineEdit

GetMinimumSize()

public override Vector2 GetMinimumSize()

Returns

Vector2

GetPrefix()

public string GetPrefix()

Returns

string

GetSuffix()

public string GetSuffix()

Returns

string

GetUpdateOnTextChanged()

public bool GetUpdateOnTextChanged()

Returns

bool

IsCustomArrowRounding()

public bool IsCustomArrowRounding()

Returns

bool

IsEditable()

public bool IsEditable()

Returns

bool

IsSelectAllOnFocus()

public bool IsSelectAllOnFocus()

Returns

bool

SetCustomArrowRound(bool)

public void SetCustomArrowRound(bool round)

Parameters

round bool

SetCustomArrowStep(float)

public void SetCustomArrowStep(float customArrowStep)

Parameters

customArrowStep float

SetEditable(bool)

public void SetEditable(bool enabled)

Parameters

enabled bool

SetHorizontalAlignment(HorizontalAlignment)

public void SetHorizontalAlignment(HorizontalAlignment alignment)

Parameters

alignment HorizontalAlignment

SetPrefix(string)

public void SetPrefix(string prefix)

Parameters

prefix string

SetSelectAllOnFocus(bool)

public void SetSelectAllOnFocus(bool enabled)

Parameters

enabled bool

SetSuffix(string)

public void SetSuffix(string suffix)

Parameters

suffix string

SetUpdateOnTextChanged(bool)

public void SetUpdateOnTextChanged(bool enabled)

Parameters

enabled bool