Version

CreatePredefinedShape(PredefinedShapeType) Method

Creates a shape which is predefined in Microsoft Excel.
Syntax
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: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also