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

Represents the context for updating a user interface layer in the Telerik document management system.

Definition

Namespace:Telerik.Windows.Documents.UI.Layers

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class UILayerUpdateContext

Inheritance: objectUILayerUpdateContext

Constructors

C#
public UILayerUpdateContext(PointF? viewOffset, RectangleF viewPort, IUILayerContainer presenter, SectionLayoutBox currentSection)
Parameters:viewOffsetPointF?viewPortRectangleFpresenterIUILayerContainercurrentSectionSectionLayoutBox

Properties

Gets the current section box of the UILayer update context.

C#
public SectionLayoutBox CurrentSectionBox { get; }

Filters floating blocks within the view port of the UI layer update context.

C#
public bool FilterFloatingBlocksWithViewPort { get; set; }

Represents the presenter associated with the UI layer update context.

C#
public IUILayerContainer Presenter { get; }

Gets or sets the current view offset of the UI layer.

C#
public PointF ViewOffset { get; }
Property Value:

A PointF representing the view offset.

Represents the viewport of the UI Layer Update Context, providing information about the visible area of the UI layer.

C#
public RectangleF ViewPort { get; }

Methods

Retrieves a collection of currently visible floating blocks in the UI layer.

C#
public IEnumerable<FloatingBlockLayoutBox> GetVisibleFloatingBlocks()
Returns:

IEnumerable<FloatingBlockLayoutBox>

A collection of visible floating blocks.

Retrieves a collection of visible layout boxes within the UI layer.

C#
public IEnumerable<LayoutBox> GetVisibleLayoutBoxes()
Returns:

IEnumerable<LayoutBox>

An enumerable collection of layout boxes that are currently visible in the user interface.

Retrieves a collection of visible layout boxes of type T from the UILayerUpdateContext.

C#
public IEnumerable<T> GetVisibleLayoutBoxes<T>() where T : LayoutBox
Returns:

IEnumerable<T>

A collection of visible layout boxes of the specified type T.

Retrieves a collection of visible layout boxes that match the specified predicate.

C#
public IEnumerable<T> GetVisibleLayoutBoxes<T>(Predicate<T> filter) where T : LayoutBox
Parameters:filterPredicate<T>

A function that evaluates each element and returns a boolean indicating whether the element should be included in the result.

Returns:

IEnumerable<T>

A collection of layout boxes of type T that are currently visible and satisfy the given predicate.

Retrieves a collection of visible text layout boxes from the UI layer update context.

C#
public IEnumerable<SpanLayoutBox> GetVisibleTextLayoutBoxes()
Returns:

IEnumerable<SpanLayoutBox>

A collection of visible text layout boxes that represent the current state of the text in the UI layer.