Aether Utilities Aether Utilities
Aether Utilities Aether Utilities
DocFX + Singulink = ♥

Search Results for

    Edit this page

    Class ControlExtensions

    Namespace
    AetherUtils.Core.Extensions
    Assembly
    AetherUtils.Core.dll
    Provides extension methods for manipulating WinForm Control objects.
    public static class ControlExtensions
    Inheritance
    object
    ControlExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()

    Methods

    ApplyFont(Control, Font)

    Apply a font to this control. This method is thread-safe.
    public static void ApplyFont(this Control c, Font font)

    Parameters

    c Control
    The Control to apply the font to.
    font Font
    The Font to apply to the control.

    InvokeIfRequired<T>(T, Action<T>)

    Invoke the specified action on the specified control, if required.
    [UsedImplicitly]
    public static void InvokeIfRequired<T>(this T control, Action<T> action) where T : ISynchronizeInvoke

    Parameters

    control T
    The Control to invoke an action on.
    action Action<T>
    The Action to invoke on the control.

    Type Parameters

    T
    The Control type.

    ResizeColumns(ListView)

    Resizes the columns of a ListView control to be a best-fit compromise between the header and the content.
    [UsedImplicitly]
    public static void ResizeColumns(this ListView listView)

    Parameters

    listView ListView
    The ListView to auto-size the columns of.
    (c) 2024 Ethan Hann. All rights reserved.