[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.IControl.BringToFront

BringToFront Method

BringToFront()

Changes the z-index of this control to the front.

Use this method to place the control in front of other overlapping form controls on the same parent.

Declaration
bool BringToFront()
Function BringToFront() As Boolean
Returns
Type Description
bool

true if the control is brought to the front; otherwise, false.

Examples
IButton button1 = worksheet.Controls.AddButton(20, 20, 80, 24);
IButton button2 = worksheet.Controls.AddButton(30, 24, 80, 24);
bool moved = button1.BringToFront();