SelectionUILayer
Represents a layer that handles the user interface elements related to selection in the document editor.
Definition
Namespace:Telerik.Windows.Documents.UI.Layers
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class SelectionUILayer : IUILayer
Inheritance: objectSelectionUILayer
Implements:
Constructors
public SelectionUILayer(IDocumentEditorPresenterContainer documentEditor)
Fields
public SectionLayoutBox currentSectionLayoutBox
Properties
Gets or sets a value indicating whether the UI layer is visible for hit testing.
public bool IsHitTestVisible { get; set; }
True if the UI layer is visible for hit testing; otherwise, false.
Implements:
Gets or sets the name of the selection UI layer.
public string Name { get; }
A string representing the name of the selection UI layer.
Implements:
Gets a value indicating whether the selection UI layer should clip its content to the bounds of the associated visual element.
public bool ShouldClip { get; }
Implements:
Determines whether the selection UI layer should be updated when it is not invalidated.
public bool ShouldUpdateWhenNotInvalidated { get; }
Implements:
Methods
Arranges the child elements of the selection user interface layer.
public void ArrangeChildren()
Implements:
Clears all child elements from the selection user interface layer.
public void ClearChildren()
Implements:
Performs an action when the presentation changes in the Selection UI layer.
public void DoOnPresentationChanged()
Implements:
GetLayerUIElement()
UIElement
Retrieves the user interface element associated with the selection layer.
public UIElement GetLayerUIElement()
UIElement
The UI element representing the selection layer, or null if no element is found.
Implements:
Registers an inline selection handler for the selection UI layer.
public void RegisterInlineSelectionHandler(Type inlineType, IInlineSelectionHandler selectionHandler)
The type for which the inline selection handler is being registered.
selectionHandlerIInlineSelectionHandlerThe inline selection handler to be registered.
Unregisters an inline selection handler for the specified type.
public void UnregisterInlineSelectionHandler(Type inlineType)
The type of the inline selection handler to be unregistered.
Updates the UI viewport for the selection layer based on the provided parameters.
public void UpdateUIViewPort(PointF viewOffset, RectangleF viewPort)
The point in the viewport that serves as a reference for the update.
viewPortRectangleFThe rectangle that defines the area of the viewport to be updated.
Updates the viewport of the selection UI layer based on the specified update context.
public virtual void UpdateViewPort(UILayerUpdateContext context)
The context that contains information necessary for updating the UI layer.
Implements: