Class Shape
Represents a Shape.
Implements
Inherited Members
Namespace: DRIT.Document.Drawing
Assembly: DRIT.Document.dll
Syntax
public class Shape : AbstractShape, IDrawingObject
Constructors
Shape(Document, ShapeType, double, double)
Creates an inline shape with the specified type and size in centimetres.
Declaration
public Shape(Document document, ShapeType shapeType, double widthCm, double heightCm)
Parameters
| Type | Name | Description |
|---|---|---|
| Document | document | |
| ShapeType | shapeType | |
| double | widthCm | |
| double | heightCm |
Properties
FormattedText
Gets or sets formatted text.
Declaration
public FormattedText FormattedText { get; }
Property Value
| Type | Description |
|---|---|
| FormattedText |
LockAspectRatio
Gets or sets whether the picture retains its original proportions when you resize it.
Declaration
public bool LockAspectRatio { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Outline
Gets the line (outline) properties for this shape. Use DrawingColor and WidthPoints to style the outline.
Declaration
public Line Outline { get; }
Property Value
| Type | Description |
|---|---|
| Line |
Picture
Gets or sets picture.
Declaration
public Picture Picture { get; }
Property Value
| Type | Description |
|---|---|
| Picture |
Methods
GetGeometryPaths()
Describes the shape configuration.
Declaration
public override IReadOnlyList<GeometryPath> GetGeometryPaths()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<GeometryPath> | The resulting value. |
Overrides
SetGeometryPath(GeometryPath)
Sets the geometry Path for this object.
Declaration
public Shape SetGeometryPath(GeometryPath geometryPath)
Parameters
| Type | Name | Description |
|---|---|---|
| GeometryPath | geometryPath | The geometry Path used by the operation. |
Returns
| Type | Description |
|---|---|
| Shape | The resulting value. |
SetGeometryPaths(IEnumerable<GeometryPath>)
Sets the geometry Paths for this object.
Declaration
public Shape SetGeometryPaths(IEnumerable<GeometryPath> geometryPaths)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<GeometryPath> | geometryPaths | The geometry Paths used by the operation. |
Returns
| Type | Description |
|---|---|
| Shape | The resulting value. |
SetImage(string)
Describes the shape configuration.
Declaration
public override AbstractShape SetImage(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path used by the operation. |
Returns
| Type | Description |
|---|---|
| AbstractShape | The resulting value. |