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 PooledUILayer

Provides the base class from which the classes that represent pooled UI layers are derived. This class has object pool that stores UI elements that are not currently in use. This way they can be reused.

Inheritance
System.Object
UILayer
PooledUILayer
WorksheetUILayerBase
Inherited Members
UILayer.UpdateUI()
UILayer.UpdateUI(UIUpdateContext)
UILayer.OnOwnerChanged(IUILayerOwner, IUILayerOwner)
UILayer.UpdateUIOverride(UIUpdateContext)
UILayer.Translate(Point, ViewportPaneType, UIUpdateContext)
UILayer.Translate(Rect, ViewportPaneType, UIUpdateContext)
UILayer.TranslateAndScale(UIUpdateContext)
UILayer.IsElementVisible(UIElement)
UILayer.GetElementVisibility(UIElement)
UILayer.SetElementVisibility(UIElement, ElementVisibility)
UILayer.GetAddedUIElements(ViewportPaneType)
UILayer.UIUpdateContextCache
UILayer.ContainerManager
UILayer.Owner
UILayer.Name
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinForms.Controls.Spreadsheet.Layers
Assembly: Telerik.WinControls.RadSpreadsheet.dll

Syntax

public abstract class PooledUILayer : UILayer, INamedObject

Constructors

PooledUILayer()

Initializes a new instance of the PooledUILayer class.

Declaration
protected PooledUILayer()

Properties

ReuseUIElementsWithoutRemovingFromVisualTree

Gets the value indicating if the UI element will be reused without removing from visual tree.

Declaration
protected virtual bool ReuseUIElementsWithoutRemovingFromVisualTree { get; }
Property Value
System.Boolean

The value indicating if the UI element will be reused without removing from visual tree.

Methods

AddElementToPool(Object)

Adds the element to pool.

Declaration
protected void AddElementToPool(object element)
Parameters
System.Object element

The element.

CanRecycle(Object)

Determines whether this instance can recycle the specified element.

Declaration
protected virtual bool CanRecycle(object element)
Parameters
System.Object element

The element.

Returns
System.Boolean

Tru if can recycle the element.

Clear()

Clears this instance by removing all UI elements and returning them in the pool.

Declaration
public override void Clear()
Overrides
UILayer.Clear()

GetElementFromPool<T>()

Gets the element from pool.

Declaration
protected T GetElementFromPool<T>()
    where T : class, new()
Returns
T

The desired element.

Type Parameters
T

The type of the desired element.

GetElementFromPool<T>(ViewportPaneType)

Gets the element from pool.

Declaration
protected T GetElementFromPool<T>(ViewportPaneType paneType)
    where T : class, new()
Parameters
ViewportPaneType paneType

Returns
T

The desired element.

Type Parameters
T

The type of the desired element.

OnUIUpdated()

Called when UI is updated.

Declaration
protected override void OnUIUpdated()
Overrides
UILayer.OnUIUpdated()

ResetPooledElementProperties(Object)

Resets the pooled element properties.

Declaration
protected virtual void ResetPooledElementProperties(object element)
Parameters
System.Object element

The element.

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • 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.