Udostępnij za pośrednictwem


MonthCalendar.BringToFront Method (2007 System)

Brings the MonthCalendar to the front of the z-order.

Namespace:  Microsoft.Office.Tools.Excel.Controls
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
Public Function BringToFront As Object
'Usage
Dim instance As MonthCalendar 
Dim returnValue As Object 

returnValue = instance.BringToFront()
public Object BringToFront()
public:
Object^ BringToFront()
public function BringToFront() : Object

Return Value

Type: System.Object
true if the z-order is successfully changed; otherwise, false.

Remarks

This method sets the z-order of the MonthCalendar 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 MonthCalendar.

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

See Also

Reference

MonthCalendar Class

MonthCalendar Members

Microsoft.Office.Tools.Excel.Controls Namespace