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

    Show / Hide Table of Contents

    Interface IUIGrid

    A component provides a flexible grid area that consists of columns and rows. Child elements of the Grid are measured and arranged according to their row/column assignments and other logic.

    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 IUIGrid : IUIElementWithChildren, IUIElement

    Properties

    Cells

    Gets the cells in the grid.

    Declaration
    IUIGridCell[]? Cells { get; }
    Property Value
    Type Description
    IUIGridCell[]

    ColumnSpacing

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

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

    Columns

    Gets the definition of the columns in the grid. Default is a column that takes the whole width.

    Declaration
    UIGridLength[]? Columns { get; }
    Property Value
    Type Description
    UIGridLength[]

    RowSpacing

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

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

    Rows

    Gets the definition of the rows in the grid. Default is a row that takes the whole height.

    Declaration
    UIGridLength[]? Rows { get; }
    Property Value
    Type Description
    UIGridLength[]

    Events

    CellsChanged

    Raised when Cells is changed.

    Declaration
    event EventHandler? CellsChanged
    Event Type
    Type Description
    EventHandler

    ColumnSpacingChanged

    Raised when ColumnSpacing is changed.

    Declaration
    event EventHandler? ColumnSpacingChanged
    Event Type
    Type Description
    EventHandler

    ColumnsChanged

    Raised when Columns is changed.

    Declaration
    event EventHandler? ColumnsChanged
    Event Type
    Type Description
    EventHandler

    RowSpacingChanged

    Raised when RowSpacing is changed.

    Declaration
    event EventHandler? RowSpacingChanged
    Event Type
    Type Description
    EventHandler

    RowsChanged

    Raised when Rows is changed.

    Declaration
    event EventHandler? RowsChanged
    Event Type
    Type Description
    EventHandler

    Extension Methods

    GUI.AlignHorizontally<T>(T, UIHorizontalAlignment)
    GUI.AlignVertically<T>(T, UIVerticalAlignment)
    GUI.Cells(IUIGrid, params IUIGridCell[])
    GUI.ColumnLargeSpacing(IUIGrid)
    GUI.ColumnMediumSpacing(IUIGrid)
    GUI.ColumnNoSpacing(IUIGrid)
    GUI.ColumnSmallSpacing(IUIGrid)
    GUI.Columns(IUIGrid, params UIGridLength[])
    GUI.Columns<TEnum>(IUIGrid, params (TEnum name, UIGridLength width)[])
    GUI.Disable<T>(T)
    GUI.Enable<T>(T)
    GUI.Hide<T>(T)
    GUI.RowLargeSpacing(IUIGrid)
    GUI.RowMediumSpacing(IUIGrid)
    GUI.RowNoSpacing(IUIGrid)
    GUI.RowSmallSpacing(IUIGrid)
    GUI.Rows(IUIGrid, params UIGridLength[])
    GUI.Rows<TEnum>(IUIGrid, params (TEnum name, UIGridLength height)[])
    GUI.Show<T>(T)
    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys