aspose.words.drawing module

The aspose.words.drawing module provides classes that allow to create and modify drawing objects.

All drawing objects in Microsoft Word documents are represented by instances of the Shape and GroupShape classes. An object of the Shape class is a node in a document and can represent a picture, textbox, AutoShape or an OLE object.

The classes in this module support the latest (Word 2007 - 2013 DrawingML) and the earlier (pre Word 2007 - Office Art) shapes.

Classes

Class Description
Fill Represents fill formatting for an object. To learn more, visit the Working with Graphic Elements documentation article.
GradientStop Represents one gradient stop. To learn more, visit the Working with Graphic Elements documentation article.
GradientStopCollection Contains a collection of GradientStop objects. To learn more, visit the Working with Graphic Elements documentation article.
GroupShape Represents a group of shapes in a document. To learn more, visit the How to Add Group Shape into a Word Document documentation article.
HorizontalRuleFormat Represents horizontal rule formatting. To learn more, visit the Working with Shapes documentation article.
ImageData Defines an image for a shape. To learn more, visit the Working with Images documentation article.
ImageSize Contains information about image size and resolution. To learn more, visit the Working with Images documentation article.
OleFormat Provides access to the data of an OLE object or ActiveX control. To learn more, visit the Working with Ole Objects documentation article.
OlePackage Allows to access OLE Package properties. To learn more, visit the Working with Ole Objects documentation article.
ShadowFormat Represents shadow formatting for an object. To learn more, visit the Working with Graphic Elements documentation article.
Shape Represents an object in the drawing layer, such as an AutoShape, textbox, freeform, OLE object, ActiveX control, or picture. To learn more, visit the Working with Shapes documentation article.
ShapeBase Base class for objects in the drawing layer, such as an AutoShape, freeform, OLE object, ActiveX control, or picture. To learn more, visit the Working with Shapes documentation article.
SignatureLine Provides access to signature line properties. To learn more, visit the Work with Digital Signatures documentation article.
Stroke Defines a stroke for a shape. To learn more, visit the Working with Shapes documentation article.
TextBox Defines attributes that specify how a text is displayed inside a shape. To learn more, visit the Working with Shapes documentation article.
TextPath Defines the text and formatting of the text path (of a WordArt object). To learn more, visit the Working with Shapes documentation article.

Enumerations

Enumeration Description
ArrowLength Length of the arrow at the end of a line.
ArrowType Specifies the type of an arrow at a line end.
ArrowWidth Width of the arrow at the end of a line.
DashStyle Dashed line style.
EndCap Specifies line cap style.
FillType Specifies fill type for a fillable object.
FlipOrientation Possible values for the orientation of a shape.
GradientStyle Specifies the style for a gradient fill.
GradientVariant Specifies the variant for a gradient fill.
HorizontalAlignment Specifies horizontal alignment of a floating shape, text frame or floating table.
HorizontalRuleAlignment Represents the alignment for the specified horizontal rule.
ImageType Specifies the type (format) of an image in a Microsoft Word document.
JoinStyle Line join style.
LayoutFlow Determines the flow of the text layout in a textbox.
PatternType Specifies the fill pattern to be used to fill a shape.
PresetTexture Specifies texture to be used to fill a shape.
RelativeHorizontalPosition Specifies to what the horizontal position of a shape or text frame is relative.
RelativeVerticalPosition Specifies to what the vertical position of a shape or text frame is relative.
ShadowType Specifies the type of a shape shadow.
ShapeLineStyle Specifies the compound line style of a Shape.
ShapeMarkupLanguage Specifies Markup language used for the shape.
ShapeType Specifies the type of shape in a Microsoft Word document.
TextBoxAnchor Specifies values used for shape text vertical alignment.
TextBoxWrapMode Specifies how text wraps inside a shape.
TextPathAlignment WordArt alignment.
TextureAlignment Specifies the alignment for the tiling of the texture fill.
VerticalAlignment Specifies vertical alignment of a floating shape, text frame or a floating table.
WrapSide Specifies what side(s) of the shape or picture the text wraps around.
WrapType Specifies how text is wrapped around a shape or picture.