New to Telerik Document ProcessingStart a free 30-day trial

Floating shape that displays an image within a worksheet, supporting positioning, sizing, and rotation.

Definition

Constructors

Initializes a new instance of the FloatingImage class.

C#
public FloatingImage(Worksheet worksheet, CellIndex cellIndex, double offsetX, double offsetY)
Parameters:worksheetWorksheet

The worksheet assigned to the image.

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.

Properties

Gets the shape type, always Image for this shape.

C#
public override FloatingShapeType FloatingShapeType { get; }

Overrides: FloatingShapeBase.FloatingShapeType

Gets or sets the image data source for this shape.

C#
public ImageSource ImageSource { get; set; }
Property Value:

The image source.

Gets or sets whether resizing operations maintain aspect ratio relative to the original image dimensions.

C#
public bool PreferRelativeToOriginalResize { get; set; }
Property Value:

The prefer relative to original resize.