NumericUpDown.Index Property

Definition

Gets the index number of the NumericUpDown within the collection of OLEObjects on the sheet.

public:
 property int Index { int get(); };
public int Index { get; }
member this.Index : int
Public ReadOnly Property Index As Integer

Property Value

The index number of the NumericUpDown within the collection of OLEObjects on the sheet.

Examples

For a code example that demonstrates how to use this property, see Microsoft.Office.Tools.Excel.Controls.Button.Index. All controls in the Microsoft.Office.Tools.Excel.Controls namespace have a functionally equivalent Index property.

Remarks

The index value of controls added to the Microsoft Office Excel worksheet starts at 2 because it is the index of the OLEObjects collection of the sheet.

Applies to