Initialises a new instance of the CollectionElement class.

Namespace:  Mindscape.WpfElements.WpfPropertyGrid
Assembly:  Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public CollectionElement(
	Object source,
	CollectionTypeOperations typeOperations,
	Object index,
	bool useIndexAsFullDisplayName,
	Predicate<Node> childFilter
)
Visual Basic (Declaration)
Public Sub New ( _
	source As Object, _
	typeOperations As CollectionTypeOperations, _
	index As Object, _
	useIndexAsFullDisplayName As Boolean, _
	childFilter As Predicate(Of Node) _
)

Parameters

source
Type: System..::.Object
The object whose collection property is being represented.
typeOperations
Type: Mindscape.WpfElements.WpfPropertyGrid..::.CollectionTypeOperations
The collection methods and properties for operating on this node.
index
Type: System..::.Object
The index or key in the collection of this element.
useIndexAsFullDisplayName
Type: System..::.Boolean
If true, the index alone is used as the display name; if false, the property name and index are combined to create a display name. (The former is typically the best option for dictionary-type collections, where the keys may be meaningful in themselves; the latter is typically better for list-type collections, where the keys are plain integers.)
childFilter
Type: System..::.Predicate<(Of <(Node>)>)
A callback for determining whether to show descendant nodes.

See Also