ClassSelectionUILayer
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
SelectionUILayer(IDocumentEditorPresenterContainer)
Declaration
public SelectionUILayer(IDocumentEditorPresenterContainer documentEditor)
Parameters
documentEditor
Fields
currentSectionLayoutBox
Declaration
public SectionLayoutBox currentSectionLayoutBox
Field Value
Properties
IsHitTestVisible
Gets or sets a value indicating whether the UI layer is visible for hit testing.
Declaration
public bool IsHitTestVisible { get; set; }
Property Value
True if the UI layer is visible for hit testing; otherwise, false.
Implements
Name
Gets or sets the name of the selection UI layer.
Declaration
public string Name { get; }
Property Value
A string representing the name of the selection UI layer.
Implements
ShouldClip
Gets a value indicating whether the selection UI layer should clip its content to the bounds of the associated visual element.
ShouldUpdateWhenNotInvalidated
Determines whether the selection UI layer should be updated when it is not invalidated.
Declaration
public bool ShouldUpdateWhenNotInvalidated { get; }
Property Value
Implements
Methods
ArrangeChildren()
Arranges the child elements of the selection user interface layer.
Declaration
public void ArrangeChildren()
Implements
ClearChildren()
Clears all child elements from the selection user interface layer.
Declaration
public void ClearChildren()
Implements
DoOnPresentationChanged()
Performs an action when the presentation changes in the Selection UI layer.
Declaration
public void DoOnPresentationChanged()
Implements
GetLayerUIElement()
Retrieves the user interface element associated with the selection layer.
Declaration
public UIElement GetLayerUIElement()
Returns
UIElement
The UI element representing the selection layer, or null if no element is found.
Implements
RegisterInlineSelectionHandler(Type, IInlineSelectionHandler)
Registers an inline selection handler for the selection UI layer.
Declaration
public void RegisterInlineSelectionHandler(Type inlineType, IInlineSelectionHandler selectionHandler)
Parameters
inlineType
The type for which the inline selection handler is being registered.
selectionHandler
The inline selection handler to be registered.
UnregisterInlineSelectionHandler(Type)
Unregisters an inline selection handler for the specified type.
Declaration
public void UnregisterInlineSelectionHandler(Type inlineType)
Parameters
inlineType
The type of the inline selection handler to be unregistered.
UpdateUIViewPort(PointF, RectangleF)
Updates the UI viewport for the selection layer based on the provided parameters.
Declaration
public void UpdateUIViewPort(PointF viewOffset, RectangleF viewPort)
Parameters
viewOffset
The point in the viewport that serves as a reference for the update.
viewPort
The rectangle that defines the area of the viewport to be updated.
UpdateViewPort(UILayerUpdateContext)
Updates the viewport of the selection UI layer based on the specified update context.
Declaration
public void UpdateViewPort(UILayerUpdateContext context)
Parameters
context
The context that contains information necessary for updating the UI layer.
Implements