Share via


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)

Usage

Dim shape1 As Shape

Dim returnValue As MsoAutoShapeType
returnValue = shape1.AutoShapeType

Dim sampleValue As MsoAutoShapeType
shape1.AutoShapeType = sampleValue

Syntax

Property AutoShapeType() As MsoAutoShapeType
MsoAutoShapeType AutoShapeType {get; set;}
property MsoAutoShapeType^ AutoShapeType{
    MsoAutoShapeType^ get();
    Void set(MsoAutoShapeType^);
}
public MsoAutoShapeType get_AutoShapeType();
public void set_AutoShapeType(MsoAutoShapeType);
function get AutoShapeType() : MsoAutoShapeType;
function set AutoShapeType(MsoAutoShapeType);

Remarks

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

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

Other Resources

Shape Members