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
ArrowLayout
Gets or sets the arrow arrangement. The default is Vertical.
public SpinBoxArrowLayout ArrowLayout { get; set; }
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()
GetArrowLayout()
Gets the arrow arrangement.
public SpinBoxArrowLayout GetArrowLayout()
Returns
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
PointerMoved(Point)
The pointer moved over this control, in global coordinates.
protected override void PointerMoved(Point point)
Parameters
pointPoint
PointerPressed(Point)
A pointer press landed on this control, in global coordinates.
Protected as well as internal so a control defined outside this assembly can take part in pointer input. Without that, an app hosting its own drawing surface has to read raw mouse state instead, which bypasses hit-testing, modal gating and the injection side-channel — so such a surface cannot be driven by a test at all.
protected override void PointerPressed(Point point)
Parameters
pointPoint
PointerReleased(Point, bool)
The pointer was released, with whether it was still inside this control.
protected override void PointerReleased(Point point, bool isInside)
Parameters
pointPointisInsidebool
SetArrowLayout(SpinBoxArrowLayout)
Sets the arrow arrangement.
public void SetArrowLayout(SpinBoxArrowLayout layout)
Parameters
layoutSpinBoxArrowLayout
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