Share via


Shape.Top Property

Returns or sets the vertical position of the specified shape in points.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property Top As Single
    Get
    Set
'Usage
Dim instance As Shape
Dim value As Single

value = instance.Top

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

Property Value

Type: System.Single

Remarks

The position of a shape is measured from the upper-left corner of the shape's bounding box to the shape's anchor. The RelativeVerticalPosition property controls whether the shape's anchor is positioned alongside the line, the paragraph, the margin, or the edge of the page.

See Also

Reference

Shape Interface

Shape Members

Microsoft.Office.Interop.Word Namespace