UILayerUpdateContext
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:
public class UILayerUpdateContext
Inheritance: objectUILayerUpdateContext
Constructors
public UILayerUpdateContext(PointF? viewOffset, RectangleF viewPort, IUILayerContainer presenter, SectionLayoutBox currentSection)
Properties
Gets the current section box of the UILayer update context.
public SectionLayoutBox CurrentSectionBox { get; }
Filters floating blocks within the view port of the UI layer update context.
public bool FilterFloatingBlocksWithViewPort { get; set; }
Represents the presenter associated with the UI layer update context.
public IUILayerContainer Presenter { get; }
Gets or sets the current view offset of the UI layer.
Represents the viewport of the UI Layer Update Context, providing information about the visible area of the UI layer.
public RectangleF ViewPort { get; }
Methods
Retrieves a collection of currently visible floating blocks in the UI layer.
public IEnumerable<FloatingBlockLayoutBox> GetVisibleFloatingBlocks()
IEnumerable<FloatingBlockLayoutBox>
A collection of visible floating blocks.
Retrieves a collection of visible layout boxes within the UI layer.
public IEnumerable<LayoutBox> GetVisibleLayoutBoxes()
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.
public IEnumerable<T> GetVisibleLayoutBoxes<T>() where T : LayoutBox
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.
public IEnumerable<T> GetVisibleLayoutBoxes<T>(Predicate<T> filter) where T : LayoutBox
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.
public IEnumerable<SpanLayoutBox> GetVisibleTextLayoutBoxes()
A collection of visible text layout boxes that represent the current state of the text in the UI layer.