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

    Show / Hide Table of Contents

    Interface IUILabel

    A component that displays a text.

    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 IUILabel : IUIElement

    Properties

    AutoWrap

    Gets whether the text can wrap if it can't fit within the available horizontal space. Default is true.

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

    Style

    Gets the style of the text. Default value is Body.

    Declaration
    UILabelStyle Style { get; }
    Property Value
    Type Description
    UILabelStyle

    Text

    Gets the text to display.

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

    Events

    AutoWrapChanged

    Raised when AutoWrap is changed.

    Declaration
    event EventHandler? AutoWrapChanged
    Event Type
    Type Description
    EventHandler

    StyleChanged

    Raised when Style is changed.

    Declaration
    event EventHandler? StyleChanged
    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.NeverWrap(IUILabel)
    GUI.Show<T>(T)
    GUI.Style(IUILabel, UILabelStyle)
    GUI.Text(IUILabel, string?)
    GUI.WrapIfNeeded(IUILabel)
    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys