Partager via


Shape.AutoShapeType Property

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

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

Syntax

'Declaration
Property AutoShapeType As MsoAutoShapeType
    Get
    Set
'Usage
Dim instance As Shape
Dim value As MsoAutoShapeType

value = instance.AutoShapeType

instance.AutoShapeType = value
MsoAutoShapeType AutoShapeType { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoAutoShapeType

Remarks

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

Use the Type property of the ConnectorFormat object to set or return the connector type.

See Also

Reference

Shape Interface

Shape Members

Microsoft.Office.Interop.Excel Namespace