SelectionUILayer
Renders the current document selection and delegates selection adorners for registered inline types.
Definition
Namespace:Telerik.WinForms.Documents.UI.Layers
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class SelectionUILayer : IUILayer
Inheritance: objectSelectionUILayer
Implements:
Constructors
Initializes the selection path and handler registry for the specified document editor.
public SelectionUILayer(IDocumentEditorPresenterContainer documentEditor)
The editor whose selection and visual settings this layer displays.
Fields
Gets or sets the section used to limit custom inline selection handling and selection markers during viewport updates.
public SectionLayoutBox currentSectionLayoutBox
Properties
Gets or sets whether the selection layer's visuals participate in hit testing.
public bool IsHitTestVisible { get; set; }
Implements:
Gets the identifier used to register the selection layer.
public string Name { get; }
Implements:
Gets whether the presenter clips this layer to the displayed section's bounds; this layer returns false.
public bool ShouldClip { get; }
Implements:
Gets whether the presenter updates this layer even when it has not been invalidated; this layer returns true.
public bool ShouldUpdateWhenNotInvalidated { get; }
Implements:
Methods
Does nothing because selection geometry is positioned during viewport updates.
public void ArrangeChildren()
Implements:
Leaves the persistent selection path in place; its geometry is refreshed by UpdateViewPort(UILayerUpdateContext).
public void ClearChildren()
Implements:
Does nothing; this layer refreshes selection visuals through viewport updates.
public void DoOnPresentationChanged()
Implements:
Gets the visual container that hosts the selection path and selection markers.
public UIElement GetLayerUIElement()
The selection layer's visual container.
Implements:
Registers a handler to display selection UI when a single selected inline has the specified runtime type. Registering another handler for the same type replaces the previous handler.
public void RegisterInlineSelectionHandler(Type inlineType, IInlineSelectionHandler selectionHandler)
The exact inline type handled by selectionHandler.
The handler that displays and hides selection UI for that inline type.
Removes the handler registered for the specified inline type.
public void UnregisterInlineSelectionHandler(Type inlineType)
The inline type whose handler should be removed.
Updates visible selection geometry, using a registered handler for a single selected inline when applicable.
public void UpdateUIViewPort(PointF viewOffset, RectangleF viewPort)
The offset applied to the selection layer's visual container.
viewPortRectangleFThe visible rectangle used to calculate selection geometry.
Stores the current section and refreshes selection geometry and, where supported, selection markers.
public virtual void UpdateViewPort(UILayerUpdateContext context)
The current presenter and viewport information.
Implements: