skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class UILayerUpdateContext

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

Inheritance
System.Object
UILayerUpdateContext
Namespace: Telerik.Windows.Documents.UI.Layers
Assembly: Telerik.Windows.Controls.RichTextBox.dll

Syntax

public class UILayerUpdateContext : Object

Constructors

UILayerUpdateContext(Nullable<PointF>, RectangleF, IUILayerContainer, SectionLayoutBox)

Declaration
public UILayerUpdateContext(Nullable<PointF> viewOffset, RectangleF viewPort, IUILayerContainer presenter, SectionLayoutBox currentSection)
Parameters
System.Nullable<PointF> viewOffset

RectangleF viewPort

IUILayerContainer presenter

SectionLayoutBox currentSection

Properties

CurrentSectionBox

Gets the current section box of the UILayer update context.

Declaration
public SectionLayoutBox CurrentSectionBox { get; }
Property Value
SectionLayoutBox

FilterFloatingBlocksWithViewPort

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

Declaration
public bool FilterFloatingBlocksWithViewPort { get; set; }
Property Value
System.Boolean

Presenter

Represents the presenter associated with the UI layer update context.

Declaration
public IUILayerContainer Presenter { get; }
Property Value
IUILayerContainer

ViewOffset

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

Declaration
public PointF ViewOffset { get; }
Property Value
PointF

A PointF representing the view offset.

ViewPort

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

Declaration
public RectangleF ViewPort { get; }
Property Value
RectangleF

Methods

GetVisibleFloatingBlocks()

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

Declaration
public IEnumerable<FloatingBlockLayoutBox> GetVisibleFloatingBlocks()
Returns
System.Collections.Generic.IEnumerable<FloatingBlockLayoutBox>

A collection of visible floating blocks.

GetVisibleLayoutBoxes()

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

Declaration
public IEnumerable<LayoutBox> GetVisibleLayoutBoxes()
Returns
System.Collections.Generic.IEnumerable<LayoutBox>

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

GetVisibleLayoutBoxes<T>()

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

Declaration
public IEnumerable<T> GetVisibleLayoutBoxes<T>()
    where T : LayoutBox
Returns
System.Collections.Generic.IEnumerable<T>

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

Type Parameters
T

GetVisibleLayoutBoxes<T>(Predicate<T>)

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

Declaration
public IEnumerable<T> GetVisibleLayoutBoxes<T>(Predicate<T> filter)
    where T : LayoutBox
Parameters
System.Predicate<T> filter

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

Returns
System.Collections.Generic.IEnumerable<T>

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

Type Parameters
T

GetVisibleTextLayoutBoxes()

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

Declaration
public IEnumerable<SpanLayoutBox> GetVisibleTextLayoutBoxes()
Returns
System.Collections.Generic.IEnumerable<SpanLayoutBox>

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

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.