ColumnDefinitionCollection::Item Property (Int32)

 

Gets a value that indicates the current item within a ColumnDefinitionCollection.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
property ColumnDefinition^ default[
	int index
] {
	virtual ColumnDefinition^ get(int index) sealed;
	virtual void set(int index, ColumnDefinition^ value) sealed;
}

Parameters

index
Type: System::Int32

The current item in the collection.

Property Value

Type: System.Windows.Controls::ColumnDefinition^

The element at the specified index.

Exception Condition
ArgumentOutOfRangeException

index is not a valid index position in the collection.

ColumnDefinitionCollection uses a zero-based indexing system.

.NET Framework
Available since 3.0
Return to top
Show: