Class
FloatingImage

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

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Shapes

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class FloatingImage : FloatingTransformableShape

Inheritance: objectFloatingShapeBaseFloatingResizableShapeBaseFloatingTransformableShapeFloatingImage

Inherited Members FloatingTransformableShape.SetRotationAngle(double, bool)FloatingTransformableShape.RotationAngleFloatingTransformableShape.IsHorizontallyFlippedFloatingTransformableShape.IsVerticallyFlippedFloatingResizableShapeBase.CellIndexFloatingResizableShapeBase.OffsetXFloatingResizableShapeBase.OffsetYFloatingResizableShapeBase.WidthFloatingResizableShapeBase.HeightFloatingShapeBase.SetWidth(bool, double, bool)FloatingShapeBase.SetHeight(bool, double, bool)FloatingShapeBase.OnShapeChanged()FloatingShapeBase.WorksheetFloatingShapeBase.IdFloatingShapeBase.NameFloatingShapeBase.DescriptionFloatingShapeBase.LockAspectRatioFloatingShapeBase.ShapeChanged

Constructors

FloatingImage(Worksheet, CellIndex, double, double)

Initializes a new instance of the FloatingImage class.

Declaration

cs-api-definition
public FloatingImage(Worksheet worksheet, CellIndex cellIndex, double offsetX, double offsetY)

Parameters

worksheet

Worksheet

The worksheet assigned to the image.

cellIndex

CellIndex

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

offsetX

double

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

offsetY

double

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

Properties

FloatingShapeType

Gets the shape type, always Image for this shape.

Declaration

cs-api-definition
public override FloatingShapeType FloatingShapeType { get; }

Property Value

FloatingShapeType

Overrides FloatingShapeBase.FloatingShapeType

ImageSource

Gets or sets the image data source for this shape.

Declaration

cs-api-definition
public ImageSource ImageSource { get; set; }

Property Value

ImageSource

The image source.

PreferRelativeToOriginalResize

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

Declaration

cs-api-definition
public bool PreferRelativeToOriginalResize { get; set; }

Property Value

bool

The prefer relative to original resize.