RichTextBox.BringToFront Method
Brings the RichTextBox to the front of the z-order.
Namespace: Microsoft.Office.Tools.Excel.Controls
Assembly: Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)
Syntax
'Declaration
Public Function BringToFront As Object
public Object BringToFront()
Return Value
Type: System.Object
This method returns a null reference (Nothing in Visual Basic); otherwise this method returns true.
Remarks
This method sets the z-order of the RichTextBox to the last index in the OLEObjects collection; the numbering of the z-order is the opposite of the numbering of the index in the OLEObjects collection. The higher the index in the OLEObjects collection, the lower the z-order of the RichTextBox.
Examples
For a code example that demonstrates how to use this method, see Button.BringToFront. All controls in the Microsoft.Office.Tools.Excel.Controls namespace have a functionally equivalent BringToFront method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.