ClassFloatingImage
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:
public class FloatingImage : FloatingTransformableShape
Inheritance: objectFloatingShapeBaseFloatingResizableShapeBaseFloatingTransformableShapeFloatingImage
Inherited Members
Constructors
FloatingImage(Worksheet, CellIndex, double, double)
Initializes a new instance of the FloatingImage class.
Declaration
public FloatingImage(Worksheet worksheet, CellIndex cellIndex, double offsetX, double offsetY)
Parameters
worksheet
The worksheet assigned to the image.
cellIndex
The cell index where the top left corner of the shape is positioned.
offsetX
The left offset of the top left corner of the shape relative to the top left corner of the cell index.
offsetY
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
public override FloatingShapeType FloatingShapeType { get; }
Property Value
Overrides
ImageSource
Gets or sets the image data source for this shape.
Declaration
public ImageSource ImageSource { get; set; }
Property Value
The image source.
PreferRelativeToOriginalResize
Gets or sets whether resizing operations maintain aspect ratio relative to the original image dimensions.
Declaration
public bool PreferRelativeToOriginalResize { get; set; }
Property Value
The prefer relative to original resize.