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)
Usage
Dim shape1 As Shape
Dim returnValue As Single
returnValue = shape1.Top
Dim sampleValue As Single
shape1.Top = sampleValue
Syntax
Property Top() As Single
float Top {get; set;}
property Single Top{
Single get();
Void set(Single);
}
public float get_Top();
public void set_Top(float);
function get Top() : float;
function set Top(float);
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Shape Interface
Microsoft.Office.Interop.Word Namespace