Version

CreatePredefinedShape(PredefinedShapeType) Method

Creates a shape which is predefined in Microsoft Excel.
Syntax
'Declaration
 
Public Shared Function CreatePredefinedShape( _
   ByVal shapeType As PredefinedShapeType _
) As WorksheetShape
public static WorksheetShape CreatePredefinedShape( 
   PredefinedShapeType shapeType
)

Parameters

shapeType
The type of shape to create.

Return Value

A WorksheetShape-derived instance representing the predefined shape.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionshapeType is not defined in the PredefinedShapeType enumeration.
Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub