[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.IShapeRange

IShapeRange Interface

Represents a shape range, which is a set of shapes on a document.

Namespace: GrapeCity.Spreadsheet.Drawing
Assembly: GrapeCity.Spreadsheet.dll
Syntax
public interface IShapeRange : IShapeBase
Public Interface IShapeRange
    Inherits IShapeBase
Remarks

A shape range can contain as few as a single shape or as many as all the shapes on the document. You can include whichever shapes you want — chosen from among all the shapes on the document or all the shapes in the selection — to construct a shape range. For example, you could construct a IShapeRange collection that contains the first three shapes on a document, all the selected shapes on a document, or all the freeforms on a document.

Properties

Name Description
Count

Gets an integer value that represents the number of shapes in the collection.

Height

Gets or sets a int value that represents the height, in pixels, of the shape.

this[int]

Gets the IShape object at the specified index.

this[string]

Gets the IShape object with the specified name.

Left

Gets or sets a int value that represents the distance, in pixels, from the left edge of the shape to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart).

Top

Gets or sets a int value that represents the distance, in pixels, from the top edge of the topmost shape in the shape range to the top edge of the worksheet.

Visible

Gets or sets a boolean value that determines whether the shape is visible.

Width

Gets or sets a int value that represents the width, in pixels, of the shape.

ZOrderPosition

Gets the position of the specified shape in the z-order.

Methods

Name Description
Align(AlignCommand)

Aligns the shapes in the specified range of shapes.

Distribute(bool)

Horizontally or vertically distributes the shapes in the specified range of shapes.

Duplicate()

Duplicates the object and returns a reference to the new copy.

Group(bool)

Groups the shapes in the specified range.

Regroup(bool)

Regroups the group that the specified shape range belonged to previously.

See Also