NoteUIProviderBase
Hosts a note body in a pooled child editor and synchronizes its editing state with the owning document editor.
Definition
Namespace:Telerik.WinForms.Documents.UI.UIProviders
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class NoteUIProviderBase : IUIProvider
Inheritance: objectNoteUIProviderBase
Derived Classes:
Implements:
Constructors
protected NoteUIProviderBase()
Properties
Gets the containing section's bounds, or an offscreen rectangle when note layout information is unavailable.
public RectangleF BoundingRectangle { get; }
Implements:
Gets or sets the layer currently hosting this provider; the layer clears this association when detaching it.
public IUILayer ContainingLayer { get; set; }
Implements:
Gets the most recent layer context used to locate this note and its owner.
public UILayerUpdateContext CurrentUpdateContext { get; }
Gets the child editor displaying the note body.
protected RadRichTextBox Editor { get; }
Gets whether a current update context exists but no layout information can be found for the note.
public bool IsInvalidated { get; }
Implements:
Gets whether the note's source range or layout box has been removed.
public abstract bool IsRemoved { get; }
Implements:
Methods
Positions and sizes the child editor from the note's layout information and the view offset.
public void Arrange(UILayerUpdateContext context)
The current layer context.
Implements:
Gets the note-body editor visual, creating and binding the pooled editor on the first request.
public IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)
The layer context that supplies the owner and object pool.
Returns:IEnumerable<UIElement>
The child editor visual to add to the layer.
Implements:
Detaches editor event handlers, clears the child editor's document, and returns it to the object pool.
public void ReleaseElements()
Implements:
Updates the context and focuses the child editor when its note is the owner's selected note.
public void UpdateUI(UILayerUpdateContext context)
The current layer context.
Implements: