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
Properties
AccessibilityRole
public override AccessibilityRole AccessibilityRole { get; }
Property Value
CustomArrowRound
public bool CustomArrowRound { get; set; }
Property Value
CustomArrowStep
public float CustomArrowStep { get; set; }
Property Value
Font
public SpriteFont Font { get; set; }
Property Value
- SpriteFont
IsDraggingValue
public bool IsDraggingValue { get; }
Property Value
LineEdit
public SpinBoxLineEdit LineEdit { get; }
Property Value
Prefix
public string Prefix { get; set; }
Property Value
Suffix
public string Suffix { get; set; }
Property Value
UIFont
public UIFont UIFont { get; set; }
Property Value
UpdateOnTextChanged
public bool UpdateOnTextChanged { get; set; }
Property Value
Methods
Apply()
public void Apply()
GetCustomArrowStep()
public float GetCustomArrowStep()
Returns
GetHorizontalAlignment()
public HorizontalAlignment GetHorizontalAlignment()
Returns
GetLineEdit()
public LineEdit GetLineEdit()
Returns
GetMinimumSize()
public override Vector2 GetMinimumSize()
Returns
- Vector2
GetPrefix()
public string GetPrefix()
Returns
GetSuffix()
public string GetSuffix()
Returns
GetUpdateOnTextChanged()
public bool GetUpdateOnTextChanged()
Returns
IsCustomArrowRounding()
public bool IsCustomArrowRounding()
Returns
IsEditable()
public bool IsEditable()
Returns
IsSelectAllOnFocus()
public bool IsSelectAllOnFocus()
Returns
SetCustomArrowRound(bool)
public void SetCustomArrowRound(bool round)
Parameters
roundbool
SetCustomArrowStep(float)
public void SetCustomArrowStep(float customArrowStep)
Parameters
customArrowStepfloat
SetEditable(bool)
public void SetEditable(bool enabled)
Parameters
enabledbool
SetHorizontalAlignment(HorizontalAlignment)
public void SetHorizontalAlignment(HorizontalAlignment alignment)
Parameters
alignmentHorizontalAlignment
SetPrefix(string)
public void SetPrefix(string prefix)
Parameters
prefixstring
SetSelectAllOnFocus(bool)
public void SetSelectAllOnFocus(bool enabled)
Parameters
enabledbool
SetSuffix(string)
public void SetSuffix(string suffix)
Parameters
suffixstring
SetUpdateOnTextChanged(bool)
public void SetUpdateOnTextChanged(bool enabled)
Parameters
enabledbool