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

    Show / Hide Table of Contents

    Interface IUIDropDownButton

    A component that represents a drop down button where the user can click on a menu item.

    Inherited Members
    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 IUIDropDownButton : IUIElement

    Properties

    IconFontName

    Gets the name of the font containing the icon.

    Declaration
    string? IconFontName { get; }
    Property Value
    Type Description
    string

    IconGlyph

    Gets the glyph corresponding to the icon in the IconFontName.

    Declaration
    char IconGlyph { get; }
    Property Value
    Type Description
    char

    MenuItems

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

    Declaration
    IUIDropDownMenuItem[]? MenuItems { get; }
    Property Value
    Type Description
    IUIDropDownMenuItem[]

    Text

    Gets the text to display in the drop down button.

    Declaration
    string? Text { get; }
    Property Value
    Type Description
    string

    Events

    IconFontNameChanged

    Raised when IconFontName is changed.

    Declaration
    event EventHandler? IconFontNameChanged
    Event Type
    Type Description
    EventHandler

    IconGlyphChanged

    Raised when IconGlyph is changed.

    Declaration
    event EventHandler? IconGlyphChanged
    Event Type
    Type Description
    EventHandler

    MenuItemsChanged

    Raised when MenuItems is changed.

    Declaration
    event EventHandler? MenuItemsChanged
    Event Type
    Type Description
    EventHandler

    TextChanged

    Raised when Text is changed.

    Declaration
    event EventHandler? TextChanged
    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.Icon(IUIDropDownButton, string, char)
    GUI.Show<T>(T)
    GUI.Text(IUIDropDownButton, string?)
    GUI.WithMenuItems(IUIDropDownButton, params IUIDropDownMenuItem[])
    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys