DevToys logo DevToys
  • Home
  • Blog
  • Documentation
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface IUINumberInput

    A component that can be used to display or edit numbers on a single line.

    Inherited Members
    IUISingleLineTextInput.IsReadOnly
    IUISingleLineTextInput.CanCopyWhenEditable
    IUISingleLineTextInput.Text
    IUISingleLineTextInput.CommandBarExtraContent
    IUISingleLineTextInput.HideCommandBar
    IUISingleLineTextInput.IsReadOnlyChanged
    IUISingleLineTextInput.CanCopyWhenEditableChanged
    IUISingleLineTextInput.TextChanged
    IUISingleLineTextInput.CommandBarExtraContentChanged
    IUISingleLineTextInput.HideCommandBarChanged
    IUITitledElement.Title
    IUITitledElement.TitleChanged
    IUIElementWithChildren.GetChildElementById(string)
    IUIElement.Id
    IUIElement.IsVisible
    IUIElement.IsEnabled
    IUIElement.HorizontalAlignment
    IUIElement.VerticalAlignment
    IUIElement.IsVisibleChanged
    IUIElement.IsEnabledChanged
    IUIElement.HorizontalAlignmentChanged
    IUIElement.VerticalAlignmentChanged
    Namespace: DevToys.Api
    Assembly: DevToys.Api.dll
    Syntax
    public interface IUINumberInput : IUISingleLineTextInput, IUITitledElementWithChildren, IUITitledElement, IUIElementWithChildren, IUIElement

    Properties

    Max

    Gets the maximum value possible. Default is MaxValue.

    Declaration
    double Max { get; }
    Property Value
    Type Description
    double

    Min

    Gets the minimum value possible. Default is MinValue.

    Declaration
    double Min { get; }
    Property Value
    Type Description
    double

    Step

    Gets the interval between legal numbers. Default is 1.

    Declaration
    double Step { get; }
    Property Value
    Type Description
    double

    Value

    Gets the value of the input.

    Declaration
    double Value { get; }
    Property Value
    Type Description
    double

    Events

    MaxChanged

    Raised when Max is changed.

    Declaration
    event EventHandler? MaxChanged
    Event Type
    Type Description
    EventHandler

    MinChanged

    Raised when Min is changed.

    Declaration
    event EventHandler? MinChanged
    Event Type
    Type Description
    EventHandler

    StepChanged

    Raised when Step is changed.

    Declaration
    event EventHandler? StepChanged
    Event Type
    Type Description
    EventHandler

    ValueChanged

    Raised when Value is changed.

    Declaration
    event EventHandler? ValueChanged
    Event Type
    Type Description
    EventHandler

    Extension Methods

    GUI.AlignHorizontally<T>(T, UIHorizontalAlignment)
    GUI.AlignVertically<T>(T, UIVerticalAlignment)
    GUI.CanCopyWhenEditable<T>(T)
    GUI.CannotCopyWhenEditable<T>(T)
    GUI.CommandBarExtraContent<T>(T, IUIElement?)
    GUI.Disable<T>(T)
    GUI.Editable<T>(T)
    GUI.Enable<T>(T)
    GUI.HideCommandBar<T>(T)
    GUI.Hide<T>(T)
    GUI.Maximum(IUINumberInput, double)
    GUI.Minimum(IUINumberInput, double)
    GUI.OnTextChanged<T>(T, Action<string>)
    GUI.OnTextChanged<T>(T, Func<string, ValueTask>)
    GUI.OnValueChanged(IUINumberInput, Action<double>)
    GUI.OnValueChanged(IUINumberInput, Func<double, ValueTask>)
    GUI.ReadOnly<T>(T)
    GUI.ShowCommandBar<T>(T)
    GUI.Show<T>(T)
    GUI.Step(IUINumberInput, double)
    GUI.Text<T>(T, string)
    GUI.Title<T>(T, string?)
    GUI.Value(IUINumberInput, double)
    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys