Class Shape
Represents a shape in a worksheet.
Inherited Members
Namespace: DRIT.Spreadsheet.Drawing
Assembly: DRIT.Spreadsheet.dll
Syntax
public class Shape : AbstractShape, IWorksheetDrawingObject, ISheetDrawingObject, IDrawingObject
Properties
FormattedText
Gets the formatted text for this shape.
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.
Declaration
public Line Outline { get; }
Property Value
| Type | Description |
|---|---|
| Line |
Picture
Gets the picture associated with this shape.
Declaration
public Picture Picture { get; }
Property Value
| Type | Description |
|---|---|
| Picture |
Methods
GetGeometryPaths()
Retrieves the requested geometry paths from the Shape.
Declaration
public IReadOnlyList<GeometryPath> GetGeometryPaths()
Returns
| Type | Description |
|---|---|
| IReadOnlyList<GeometryPath> | The get geometry paths returned by the operation. |
SetGeometryPath(GeometryPath)
Updates the geometry path held by the Shape.
Declaration
public Shape SetGeometryPath(GeometryPath geometryPath)
Parameters
| Type | Name | Description |
|---|---|---|
| GeometryPath | geometryPath | The geometry path used by the operation. |
Returns
| Type | Description |
|---|---|
| Shape | The set geometry path returned by the operation. |
SetGeometryPaths(IEnumerable<GeometryPath>)
Updates the geometry paths held by the Shape.
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 set geometry paths returned by the operation. |
SetImage(string)
Sets the image for this shape from a file path.
Declaration
public override AbstractShape SetImage(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path to the image file. |
Returns
| Type | Description |
|---|---|
| AbstractShape | The modified shape. |