Interface
IVirtualizationService

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

Definition

Namespace:Telerik.Windows.Diagrams.Core

Assembly:Telerik.Windows.Diagrams.Core.dll

Syntax:

cs-api-definition
public interface IVirtualizationService

Properties

IsBlocked

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

Declaration

cs-api-definition
bool IsBlocked { get; set; }

Property Value

bool

Methods

ForceRealization()

Forces the realization of all items.

Declaration

cs-api-definition
void ForceRealization()

Remarks

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

IsInViewport(IDiagramItem)

Determines whether the item is in the viewport.

Declaration

cs-api-definition
bool IsInViewport(IDiagramItem item)

Parameters

item

IDiagramItem

The item.

Returns

bool

NotifyItemsChanged(NotifyCollectionChangedEventArgs)

Notifies items change.

Declaration

cs-api-definition
void NotifyItemsChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

The NotifyCollectionChangedEventArgs instance containing the event data.

Realize(Rect)

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

Declaration

cs-api-definition
void Realize(Rect enclosingBounds)

Parameters

enclosingBounds

Rect

Items inside will be realized.

Virtualize()

Virtualizes this instance.

Declaration

cs-api-definition
void Virtualize()

Virtualize(IEnumerable<IDiagramItem>)

Virtualizes the specified items.

Declaration

cs-api-definition
void Virtualize(IEnumerable<IDiagramItem> items)

Parameters

items

IEnumerable<IDiagramItem>

The items.