Class
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:

cs-api-definition
public class SelectionUILayer : IUILayer

Inheritance: objectSelectionUILayer

Implements: IUILayer

Constructors

SelectionUILayer(IDocumentEditorPresenterContainer)

Declaration

cs-api-definition
public SelectionUILayer(IDocumentEditorPresenterContainer documentEditor)

Parameters

documentEditor

IDocumentEditorPresenterContainer

Fields

currentSectionLayoutBox

Declaration

cs-api-definition
public SectionLayoutBox currentSectionLayoutBox

Field Value

SectionLayoutBox

Properties

IsHitTestVisible

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

Declaration

cs-api-definition
public bool IsHitTestVisible { get; set; }

Property Value

bool

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

Implements IUILayer.IsHitTestVisible

Name

Gets or sets the name of the selection UI layer.

Declaration

cs-api-definition
public string Name { get; }

Property Value

string

A string representing the name of the selection UI layer.

Implements IUILayer.Name

ShouldClip

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

Declaration

cs-api-definition
public bool ShouldClip { get; }

Property Value

bool

Implements IUILayer.ShouldClip

ShouldUpdateWhenNotInvalidated

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

Declaration

cs-api-definition
public bool ShouldUpdateWhenNotInvalidated { get; }

Property Value

bool

Implements IUILayer.ShouldUpdateWhenNotInvalidated

Methods

ArrangeChildren()

Arranges the child elements of the selection user interface layer.

Declaration

cs-api-definition
public void ArrangeChildren()

Implements IUILayer.ArrangeChildren()

ClearChildren()

Clears all child elements from the selection user interface layer.

Declaration

cs-api-definition
public void ClearChildren()

Implements IUILayer.ClearChildren()

DoOnPresentationChanged()

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

Declaration

cs-api-definition
public void DoOnPresentationChanged()

Implements IUILayer.DoOnPresentationChanged()

GetLayerUIElement()

Retrieves the user interface element associated with the selection layer.

Declaration

cs-api-definition
public UIElement GetLayerUIElement()

Returns

UIElement

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

Implements IUILayer.GetLayerUIElement()

RegisterInlineSelectionHandler(Type, IInlineSelectionHandler)

Registers an inline selection handler for the selection UI layer.

Declaration

cs-api-definition
public void RegisterInlineSelectionHandler(Type inlineType, IInlineSelectionHandler selectionHandler)

Parameters

inlineType

Type

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

selectionHandler

IInlineSelectionHandler

The inline selection handler to be registered.

UnregisterInlineSelectionHandler(Type)

Unregisters an inline selection handler for the specified type.

Declaration

cs-api-definition
public void UnregisterInlineSelectionHandler(Type inlineType)

Parameters

inlineType

Type

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

cs-api-definition
public void UpdateUIViewPort(PointF viewOffset, RectangleF viewPort)

Parameters

viewOffset

PointF

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

viewPort

RectangleF

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

cs-api-definition
public void UpdateViewPort(UILayerUpdateContext context)

Parameters

context

UILayerUpdateContext

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

Implements IUILayer.UpdateViewPort(UILayerUpdateContext)