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

    Show / Hide Table of Contents

    Interface IUIElement

    A base interface for all UI elements.

    Namespace: DevToys.Api
    Assembly: DevToys.Api.dll
    Syntax
    public interface IUIElement

    Properties

    HorizontalAlignment

    Gets how the element should align horizontally.

    Declaration
    UIHorizontalAlignment HorizontalAlignment { get; }
    Property Value
    Type Description
    UIHorizontalAlignment

    Id

    An optional unique identifier for this UI element. This Id can be helpful to identify some behavior related to a component in the logs of the app.

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

    IsEnabled

    Gets whether this element and its children should be enabled or disabled.

    Declaration
    bool IsEnabled { get; }
    Property Value
    Type Description
    bool

    IsVisible

    Gets whether this element should be visible or hidden in the UI.

    Declaration
    bool IsVisible { get; }
    Property Value
    Type Description
    bool

    VerticalAlignment

    Gets how the element should align vertically.

    Declaration
    UIVerticalAlignment VerticalAlignment { get; }
    Property Value
    Type Description
    UIVerticalAlignment

    Events

    HorizontalAlignmentChanged

    Raised when HorizontalAlignment is changed.

    Declaration
    event EventHandler? HorizontalAlignmentChanged
    Event Type
    Type Description
    EventHandler

    IsEnabledChanged

    Raised when IsEnabled is changed.

    Declaration
    event EventHandler? IsEnabledChanged
    Event Type
    Type Description
    EventHandler

    IsVisibleChanged

    Raised when IsVisible is changed.

    Declaration
    event EventHandler? IsVisibleChanged
    Event Type
    Type Description
    EventHandler

    VerticalAlignmentChanged

    Raised when VerticalAlignment is changed.

    Declaration
    event EventHandler? VerticalAlignmentChanged
    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.Show<T>(T)
    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys