Version

ShapeType Enumeration

Constants which define the types of shapes that can appear within a document.
Syntax
'Declaration
 
Public Enum ShapeType 
   Inherits System.Enum
public enum ShapeType : System.Enum 
Members
MemberDescription
EllipseAn ellipse. The bounds of the enclosing rectangle are defined by its position within the document and its size.
IsosceleseTriangleA 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.
LineA 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.
RectangleA rectangle. The bounds of the rectangle are defined by its position within the document and its size.
RightTriangleA 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.
Remarks

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

Requirements

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

See Also