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

Provides limited UI-thread invocation for RichTextEditor controls.

Delegates are marshaled only when the control requires invocation and already has a handle; otherwise they run immediately on the calling thread.

Definition

Namespace:Telerik.WinControls.RichTextEditor.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class Dispatcher

Inheritance: objectDispatcher

Constructors

Associates the dispatcher with the control whose thread is used for invocation.

C#
public Dispatcher(RadControl control)
Parameters:controlRadControl

The control used to determine whether invocation is required and to marshal delegates.

Methods

Runs the delegate using the same thread behavior as BeginInvoke(Action).

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

The delegate to execute.

priorityDispatcherPriority

A compatibility priority value; this implementation does not use it to schedule the delegate.

The delegate may run immediately; priority does not affect when it runs.

Runs the delegate immediately or marshals it to the associated control, depending on the control's handle and thread state.

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

The delegate to execute.

The delegate runs synchronously on the calling thread when invocation is not required or the control has no handle.