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

    Show / Hide Table of Contents

    Interface IUIStack

    A component that stacks child elements into a single line that can be oriented horizontally or vertically.

    Inherited Members
    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 IUIStack : IUIElementWithChildren, IUIElement

    Properties

    Children

    Gets the list of child elements.

    Declaration
    IUIElement[]? Children { get; }
    Property Value
    Type Description
    IUIElement[]

    Orientation

    Gets a value that indicates the dimension by which child elements are stacked. Default is Horizontal.

    Declaration
    UIOrientation Orientation { get; }
    Property Value
    Type Description
    UIOrientation

    Spacing

    Gets a value that indicates the space between stacked elements. Default is Small.

    Declaration
    UISpacing Spacing { get; }
    Property Value
    Type Description
    UISpacing

    Events

    ChildrenChanged

    Raised when Children is changed.

    Declaration
    event EventHandler? ChildrenChanged
    Event Type
    Type Description
    EventHandler

    OrientationChanged

    Raised when Orientation is changed.

    Declaration
    event EventHandler? OrientationChanged
    Event Type
    Type Description
    EventHandler

    SpacingChanged

    Raised when Spacing is changed.

    Declaration
    event EventHandler? SpacingChanged
    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.Horizontal(IUIStack)
    GUI.LargeSpacing(IUIStack)
    GUI.MediumSpacing(IUIStack)
    GUI.NoSpacing(IUIStack)
    GUI.Show<T>(T)
    GUI.SmallSpacing(IUIStack)
    GUI.Vertical(IUIStack)
    GUI.WithChildren(IUIStack, params IUIElement[])
    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys