• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Shape

Represents a shape in a worksheet.

Inheritance
object
AbstractShape
Shape
TextBoxShape
Implements
IWorksheetDrawingObject
ISheetDrawingObject
IDrawingObject
Inherited Members
AbstractShape.EnableLocks()
AbstractShape.WithAdjustments(params long[])
AbstractShape.Id
AbstractShape.Name
AbstractShape.Size
AbstractShape.ParentGroup
AbstractShape.AnchorPosition
AbstractShape.RelativePosition
AbstractShape.Position
AbstractShape.ShapeType
AbstractShape.FlipH
AbstractShape.FlipV
AbstractShape.PrintObject
AbstractShape.Locked
AbstractShape.Locks
AbstractShape.Hidden
AbstractShape.ZOrderPosition
AbstractShape.LockText
AbstractShape.AlternateText
AbstractShape.Tags
AbstractShape.Fill
AbstractShape.Line
AbstractShape.Effects
AbstractShape.HyperLink
AbstractShape.Action
AbstractShape.RotationAngle
AbstractShape.Adjustments
AbstractShape.PolygonPoints
AbstractShape.Sheet
AbstractShape.Positioning
AbstractShape.AnchoredCell
AbstractShape.Worksheet
AbstractShape.OleObject
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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.

Overrides
AbstractShape.SetImage(string)

Implements

IWorksheetDrawingObject
ISheetDrawingObject
IDrawingObject
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX