Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

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)

Dim shape1 As Shape

Dim returnValue As Single
returnValue = shape1.Top

Dim sampleValue As Single
shape1.Top = sampleValue

float Top {get; set;}
public float get_Top();
public void set_Top(float);
function get Top() : float;
function set Top(float);

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms