New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class SelectionUILayer : IUILayer

Inheritance: objectSelectionUILayer

Implements: IUILayer

Constructors

C#
public SelectionUILayer(IDocumentEditorPresenterContainer documentEditor)
Parameters:documentEditorIDocumentEditorPresenterContainer

Fields

C#
public SectionLayoutBox currentSectionLayoutBox

Properties

Gets or sets a value indicating whether the UI layer is visible for hit testing.

C#
public bool IsHitTestVisible { get; set; }
Property Value:

True if the UI layer is visible for hit testing; otherwise, false.

Implements: IUILayer.IsHitTestVisible

Gets or sets the name of the selection UI layer.

C#
public string Name { get; }
Property Value:

A string representing the name of the selection UI layer.

Implements: IUILayer.Name

Gets a value indicating whether the selection UI layer should clip its content to the bounds of the associated visual element.

C#
public bool ShouldClip { get; }

Implements: IUILayer.ShouldClip

Determines whether the selection UI layer should be updated when it is not invalidated.

C#
public bool ShouldUpdateWhenNotInvalidated { get; }

Implements: IUILayer.ShouldUpdateWhenNotInvalidated

Methods

Arranges the child elements of the selection user interface layer.

C#
public void ArrangeChildren()

Implements: IUILayer.ArrangeChildren()

Clears all child elements from the selection user interface layer.

C#
public void ClearChildren()

Implements: IUILayer.ClearChildren()

Performs an action when the presentation changes in the Selection UI layer.

C#
public void DoOnPresentationChanged()

Implements: IUILayer.DoOnPresentationChanged()

Retrieves the user interface element associated with the selection layer.

C#
public UIElement GetLayerUIElement()
Returns:

UIElement

The UI element representing the selection layer, or null if no element is found.

Implements: IUILayer.GetLayerUIElement()

Registers an inline selection handler for the selection UI layer.

C#
public void RegisterInlineSelectionHandler(Type inlineType, IInlineSelectionHandler selectionHandler)
Parameters:inlineTypeType

The type for which the inline selection handler is being registered.

selectionHandlerIInlineSelectionHandler

The inline selection handler to be registered.

Unregisters an inline selection handler for the specified type.

C#
public void UnregisterInlineSelectionHandler(Type inlineType)
Parameters:inlineTypeType

The type of the inline selection handler to be unregistered.

Updates the UI viewport for the selection layer based on the provided parameters.

C#
public void UpdateUIViewPort(PointF viewOffset, RectangleF viewPort)
Parameters:viewOffsetPointF

The point in the viewport that serves as a reference for the update.

viewPortRectangleF

The 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.

C#
public virtual void UpdateViewPort(UILayerUpdateContext context)
Parameters:contextUILayerUpdateContext

The context that contains information necessary for updating the UI layer.

Implements: IUILayer.UpdateViewPort(UILayerUpdateContext)