DateTimePicker.Index Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the index number of the DateTimePicker 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 DateTimePicker 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.