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

Shape.AutoShapeType Property

Returns or sets the shape type for the specified Shape object, which must represent an AutoShape other than a line or freeform drawing.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Dim shape1 As Shape

Dim returnValue As MsoAutoShapeType
returnValue = shape1.AutoShapeType

Dim sampleValue As MsoAutoShapeType
shape1.AutoShapeType = sampleValue

MsoAutoShapeType AutoShapeType {get; set;}
public MsoAutoShapeType get_AutoShapeType();
public void set_AutoShapeType(MsoAutoShapeType);
function get AutoShapeType() : MsoAutoShapeType;
function set AutoShapeType(MsoAutoShapeType);

When you change the type of a shape, the shape retains its size, color, and other attributes.

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