[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.IControl.ZOrder

ZOrder Property

ZOrder

Gets the z-index of this control.

Use this property to retrieve the stacking position of the control relative to other controls on the worksheet. The returned value can change after calling BringToFront() or SendToBack().

Declaration
int ZOrder { get; }
ReadOnly Property ZOrder As Integer
Examples
IControl control1 = worksheet.Controls.AddButton(20, 20, 120, 30);
IControl control2 = worksheet.Controls.AddButton(40, 40, 120, 30);
control2.BringToFront();
int zOrder = control2.ZOrder;