Skip to main content

CollectionViewLink.CollectionView Property

Gets or sets an object, which should be printed by the CollectionViewLink.

Namespace: DevExpress.Xpf.Printing

Assembly: DevExpress.Xpf.Printing.v14.2.dll

#Declaration

public ICollectionView CollectionView { get; set; }

#Property Value

Type Description
ICollectionView

An object implementing the ICollectionView interface.

#Remarks

Use the CollectionView property to specify the object to be printed or exported by the CollectionViewLink instance.

The CollectionView property should be assigned before calling the LinkBase.CreateDocument method for this link. Otherwise, a InvalidOperationException exception will be raised.

#Examples

This example demonstrates how to use the CollectionViewLink class to print data from a hierarchical data source.

See Also