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

    Show / Hide Table of Contents

    Interface IUISelectDropDownList

    A component that represents a drop down list where the user can select one item in it.

    Inherited Members
    IUITitledElement.Title
    IUITitledElement.TitleChanged
    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 IUISelectDropDownList : IUITitledElement, IUIElement

    Properties

    Items

    Gets the list of items displayed in the drop down list.

    Declaration
    IUIDropDownListItem[]? Items { get; }
    Property Value
    Type Description
    IUIDropDownListItem[]

    OnItemSelectedAction

    Gets the action to run when the user selects an item in the list.

    Declaration
    Func<IUIDropDownListItem?, ValueTask>? OnItemSelectedAction { get; }
    Property Value
    Type Description
    Func<IUIDropDownListItem, ValueTask>

    SelectedItem

    Gets the selected item in the drop down list.

    Declaration
    IUIDropDownListItem? SelectedItem { get; }
    Property Value
    Type Description
    IUIDropDownListItem

    Events

    ItemsChanged

    Raised when Items is changed.

    Declaration
    event EventHandler? ItemsChanged
    Event Type
    Type Description
    EventHandler

    SelectedItemChanged

    Raised when SelectedItem is changed.

    Declaration
    event EventHandler? SelectedItemChanged
    Event Type
    Type Description
    EventHandler

    Extension Methods

    GUI.AlignHorizontally<T>(T, UIHorizontalAlignment)
    GUI.AlignVertically<T>(T, UIVerticalAlignment)
    GUI.Disable<T>(T)
    GUI.Enable<T>(T)
    GUI.Hide<T>(T)
    GUI.OnItemSelected(IUISelectDropDownList, Action<IUIDropDownListItem?>?)
    GUI.OnItemSelected(IUISelectDropDownList, Func<IUIDropDownListItem?, ValueTask>?)
    GUI.Select(IUISelectDropDownList, IUIDropDownListItem?)
    GUI.Select(IUISelectDropDownList, int)
    GUI.Show<T>(T)
    GUI.Title<T>(T, string?)
    GUI.WithItems(IUISelectDropDownList, params IUIDropDownListItem[])
    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys