Share via


CommandBar.Top Property

Returns or sets the distance (in points) from the top edge of the specified command bar to the top edge of the screen.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Property Top As Integer
    Get
    Set
'Usage
Dim instance As CommandBar
Dim value As Integer

value = instance.Top

instance.Top = value
int Top { get; set; }

Property Value

Type: System.Int32

Remarks

Some of the content in this topic may not be applicable to some languages.

For docked command bars, this property returns or sets the distance from the command bar to the top of the docking area.

See Also

Reference

CommandBar Interface

CommandBar Members

Microsoft.Office.Core Namespace