Version

Create(WordDocumentWriter,ShapeType) Method

Creates a new VmlShape-derived instance based on the specified shapeType
Syntax
'Declaration
 
Public Shared Function Create( _
   ByVal writer As WordDocumentWriter, _
   ByVal shapeType As ShapeType _
) As VmlShape
public static VmlShape Create( 
   WordDocumentWriter writer,
   ShapeType shapeType
)

Parameters

writer
The associated WordDocumentWriter.
shapeType
A ShapeType constant which defines the type of shape to be created.
Remarks

The type of the object returned from the Create method is different based on the specified shapeType. For example, when 'Line' is specified as the shape type, a VmlLine instance is returned.

To access properties that are specific to the VmlShape-derived type that is returned, the reference returned from this method can be upcasted.

Requirements

Target Platforms: Windows 10, 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