New to Telerik Document ProcessingStart a free 30-day trial

Filtered collection of floating images within a worksheet, providing typed access and creation methods for image shapes.

Definition

Constructors

Initializes a new image collection filtering the worksheet's shape collection to include only image-type shapes.

C#
public ImageCollection(Worksheet worksheet)
Parameters:worksheetWorksheet

The worksheet.

Methods

Creates a new floating image anchored at the specified cell and offset with the provided image source, adds it to the worksheet, and returns the image shape.

C#
public FloatingImage Add(CellIndex cellIndex, double offsetX, double offsetY, ImageSource imageSource)
Parameters:cellIndexCellIndex

The cell index where the top left corner of the shape is positioned.

offsetXdouble

The left offset of the top left corner of the shape relative to the top left corner of the cell index.

offsetYdouble

The top offset of the top left corner of the shape relative to the top left corner of the cell index.

imageSourceImageSource

The image source.

Returns:

FloatingImage

The result image shape.

Properties

Returns FloatingShapeType.Image, defining the filter criterion for this collection.

C#
public override FloatingShapeType ShapeType { get; }

Overrides: FilteredShapeCollection<FloatingImage>.ShapeType