New to Telerik UI for WinForms? Start a free 30-day trial

Marshals actions to the UI thread associated with a RadControl.

Definition

Namespace:Telerik.WinControls.Spreadsheet.UI

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class Dispatcher

Inheritance: objectDispatcher

Constructors

Associates the dispatcher with the control used to determine thread affinity and invoke actions.

C#
public Dispatcher(RadControl control)
Parameters:controlRadControl

The control whose UI thread is used for invocation.

Methods

Runs an action using the same thread-dispatch behavior as the overload without a priority.

C#
public void BeginInvoke(Action executeNext, DispatcherPriority priority)
Parameters:executeNextAction

The action to run.

priorityDispatcherPriority

Ignored; the current dispatcher does not schedule by priority.

The action is queued only when invocation is required and the control handle exists; otherwise it runs synchronously on the calling thread.

Runs an action on the associated control's UI thread when cross-thread invocation is available.

C#
public void BeginInvoke(Action executeNext)
Parameters:executeNextAction

The action to run.

The action is queued only when invocation is required and the control handle exists; otherwise it runs synchronously on the calling thread.