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