RowDefinitionCollection::IndexOf Method (RowDefinition^)

 

Returns the index position of a given RowDefinition within a RowDefinitionCollection.

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

public:
virtual int IndexOf(
	RowDefinition^ value
) sealed

Parameters

value
Type: System.Windows.Controls::RowDefinition^

The RowDefinition whose index position is desired.

Return Value

Type: System::Int32

The index of value if found in the collection; otherwise, -1.

The following example demonstrates how to use the IndexOf method to determine the index position of a RowDefinition within a RowDefinitionCollection.

No code example is currently available or this language may not be supported.

To view the complete sample, see How to: Manipulate Columns and Rows by Using ColumnDefinitionsCollections and RowDefinitionsCollections.

.NET Framework
Available since 3.0
Return to top
Show: