DataGridView.ZOrder 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 z-order position of the DataGridView.
public:
property int ZOrder { int get(); };
public int ZOrder { get; }
member this.ZOrder : int
Public ReadOnly Property ZOrder As Integer
Property Value
The z-order position of the DataGridView.
Examples
For a code example that demonstrates how to use this property, see Microsoft.Office.Tools.Excel.Controls.Button.ZOrder. All controls in the Microsoft.Office.Tools.Excel.Controls namespace have a functionally equivalent ZOrder
property.
Remarks
The z-order is determined by the OLEObjects collection.
In any collection of objects, the object at the back of the z-order is collection(1), and the object at the front of the z-order is collection(collection.Count
).