'Declaration Public Enum ShapeType Inherits System.Enum
public enum ShapeType : System.Enum
Member | Description |
---|---|
Ellipse | An ellipse. The bounds of the enclosing rectangle are defined by its position within the document and its size. |
IsosceleseTriangle | A triangle whose apex is at the center of the rectangle which encloses it. The bounds of the enclosing rectangle are defined by its position within the document and its size. |
Line | A straight line. The origin of the line is implied to be at the top left corner of the rectangle defined by its position within the document and its size, and its endpoint is implied to be the bottom right corner of that rectangle. For lines that run parallel to the x or y axis, the width or height component of the Size property is set to zero (pure horizontal lines have a height of zero, pure vertical lines have a width of zero). A line can be inverted about the x axis using the InvertY property. This is used to render a line with a positive slope; since the origin is implied to be the top left corner of the bounding rect, the origin must be transformed to the bottom left corner. |
Rectangle | A rectangle. The bounds of the rectangle are defined by its position within the document and its size. |
RightTriangle | A triangle whose apex is at the left edge of the rectangle which encloses it. The bounds of the enclosing rectangle are defined by its position within the document and its size. |
The WordDocumentWriter currently only supports shape rendering using Vector Markup Language (VML); the reason this rendering mode is used is that it is supported in both MS Word 2007 and MS Word 2010.
The following table lists the classnames of the VML shapes associated with each constant:
ShapeType | VML Shape |
---|---|
Line | VmlLine |
Rectangle | VmlRectangle |
Ellipse | VmlEllipse |
IsosceleseTriangle | VmlIsosceleseTriangle |
RightTriangle | VmlRightTriangle |
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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