NanoByte.Common  2.8.1
NanoByte.Common.Controls.ControlExtensions Class Reference

Provides extension methods for Controls. More...

Static Public Member Functions

static void Invoke (this Control control, Action action)
 Executes the given action on the thread that owns this control and blocks until it is complete. More...
 
static T Invoke< T > (this Control control, Func< T > action)
 Executes the given action on the thread that owns this control and blocks until it is complete. More...
 
static float GetDpiScale (this Control control)
 Returns the current DPI scaling factor relative to the default value of 96 DPI. More...
 

Detailed Description

Provides extension methods for Controls.

Member Function Documentation

◆ GetDpiScale()

static float NanoByte.Common.Controls.ControlExtensions.GetDpiScale ( this Control  control)
inlinestatic

Returns the current DPI scaling factor relative to the default value of 96 DPI.

◆ Invoke()

static void NanoByte.Common.Controls.ControlExtensions.Invoke ( this Control  control,
Action  action 
)
inlinestatic

Executes the given action on the thread that owns this control and blocks until it is complete.

◆ Invoke< T >()

static T NanoByte.Common.Controls.ControlExtensions.Invoke< T > ( this Control  control,
Func< T >  action 
)
inlinestatic

Executes the given action on the thread that owns this control and blocks until it is complete.

Returns
The return value of the action .

The documentation for this class was generated from the following file: