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

The service supporting the virtualization of diagram items which are not visible in the viewport anymore.

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public interface IVirtualizationService

Derived Classes: VirtualizationService

Properties

When set to True, no virtualization or realization is done. When set to False, virtualization or serialization is processed normally.

C#
bool IsBlocked { get; set; }

Methods

Forces the realization of all items.

C#
void ForceRealization()
Remarks:

When implementing a layout algorithm you need to call this method in order to take all the bounds into account.

Determines whether the item is in the viewport.

C#
bool IsInViewport(IDiagramItem item)
Parameters:itemIDiagramItem

The item.

Returns:

bool

Notifies items change.

C#
void NotifyItemsChanged(NotifyCollectionChangedEventArgs e)
Parameters:eNotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs instance containing the event data.

Realizes the items contained in provided bounds and virtualizes the others.

C#
void Realize(Rect enclosingBounds)
Parameters:enclosingBoundsRect

Items inside will be realized.

Virtualizes this instance.

C#
void Virtualize()

Virtualizes the specified items.

C#
void Virtualize(IEnumerable<IDiagramItem> items)
Parameters:itemsIEnumerable<IDiagramItem>

The items.