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

NameTypeAccessDescription
NamestringRead/WriteGets or sets the name.
UpperLeftRowintRead/WriteGets or sets the upper left row.
UpperLeftColumnintRead/WriteGets or sets the upper left column.
LowerRightRowintRead/WriteGets or sets the lower right row.
LowerRightColumnintRead/WriteGets or sets the lower right column.
GeometryTypestringRead/WriteGets or sets the geometry type.
AutoShapeTypeAutoShapeTypeRead/WriteGets or sets the auto shape type.

See Also