ShapeClass
Definition
- Namespace
- DOM.Elements.Graphics
- Assembly
- DOM.dll
Represents a vector shape (rectangle, ellipse, arrow, star, etc.) that can be placed in a document.
Remarks
extends and can contain child elements (typically text). It provides a (solid, gradient, pattern, or picture), an optional, a geometric, an optional, and a full for positioning, sizing, rotation, wrapping, and margins. Shape ParentElement Fill OutLine Type Shading Transform The class also exposes a rich set of fluent helpers for common layout operations (,,,,, etc.). These helpers automatically create the underlying and objects so that callers do not need to manage the plumbing manually. SetPosition SetDimensions SetRotation SetMargin SetWrappingStyle Transform Position
Examples
Properties
Gets or sets the fill applied to the shape.
Gets or sets the outline (stroke) of the shape.
Gets or sets custom path commands for free-form shapes.
Gets or sets a background shading applied to the shape.
Gets or sets the transformation applied to the shape.
Gets or sets the geometric shape type.
Methods
Ensures that the property is initialized. Transform
Ensures that both and are initialized. Transform, Position
Returns a string representation of the graphic's transformation properties.
Resets all transformation settings (position, dimensions, rotation, margins) to their default (unset) state.
Sets whether the graphic should appear behind the document text.
Sets the dimensions (width and height) of the graphic.
Sets the distance from text for text wrapping.
Sets uniform margins around the graphic.
Sets the absolute position of the graphic using the specified coordinates and units.
Sets the relative positioning reference frames for the graphic.
Sets the rotation angle of the graphic.
Sets the scale percentages for the graphic dimensions.
Sets the text wrapping style for the graphic.
Sets a custom wrap polygon for the graphic.
Sets the wrap text value (whether text wraps on both sides, left only, right only, etc.).