Class ControlExtensions
- Namespace
- AetherUtils.Core.Extensions
- Assembly
- AetherUtils.Core.dll
Provides extension methods for manipulating WinForm Control objects.
public static class ControlExtensions
- Inheritance
-
ControlExtensions
- Inherited Members
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
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
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)