Shape
Overview
Shape is a class in Aspose.Cells FOSS for .NET.
Represents a drawing object (auto shape) anchored to a worksheet. Shapes are visual elements that can be added to worksheets, such as rectangles, circles, arrows, etc. They are positioned by specifying anchor coordinates and can be resized by adjusting the anchor points. Common uses include highlighting important data, adding annotations, or creating visual indicators. var workbook = new Workbook(); var worksheet = workbook.Worksheets[0]; // Add a rectangle shape int shapeIndex = worksheet.Shapes.Add(5, 5, 10, 10, AutoShapeType.Rectangle); var shape = worksheet.Shapes[shapeIndex]; shape.Name = “Highlight Rectangle”;
Properties: AutoShapeType, GeometryType, LowerRightColumn, LowerRightRow, Name, UpperLeftColumn, and 1 more.
Description
Shape is a class in the Aspose.Cells FOSS library for .NET that exposes 0 methods and 7 properties for programmatic use.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Name | string | Read/Write | Gets or sets the name. |
UpperLeftRow | int | Read/Write | Gets or sets the upper left row. |
UpperLeftColumn | int | Read/Write | Gets or sets the upper left column. |
LowerRightRow | int | Read/Write | Gets or sets the lower right row. |
LowerRightColumn | int | Read/Write | Gets or sets the lower right column. |
GeometryType | string | Read/Write | Gets or sets the geometry type. |
AutoShapeType | AutoShapeType | Read/Write | Gets or sets the auto shape type. |