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

    Show / Hide Table of Contents

    Interface IUIIcon

    A component that represents an icon.

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

    Properties

    FontName

    Gets the name of the font containing the icon.

    Declaration
    string FontName { get; }
    Property Value
    Type Description
    string

    Glyph

    Gets the glyph corresponding to the icon in the FontName.

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

    Size

    Gets the size of the icon.

    Declaration
    int Size { get; }
    Property Value
    Type Description
    int

    Events

    FontNameChanged

    Raised when FontName is changed.

    Declaration
    event EventHandler? FontNameChanged
    Event Type
    Type Description
    EventHandler

    GlyphChanged

    Raised when Glyph is changed.

    Declaration
    event EventHandler? GlyphChanged
    Event Type
    Type Description
    EventHandler

    SizeChanged

    Raised when Size is changed.

    Declaration
    event EventHandler? SizeChanged
    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.FontName(IUIIcon, string)
    GUI.Glyph(IUIIcon, char)
    GUI.Hide<T>(T)
    GUI.Show<T>(T)
    GUI.Size(IUIIcon, int)
    LoggingExtensions.Log<T>(T)
    In this article
    DevToys logo © 2024 DevToys