Class FloatingImage
Floating shape that displays an image within a worksheet, supporting positioning, sizing, and rotation.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model.Shapes
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class FloatingImage : FloatingTransformableShape, ICopyable<FloatingShapeBase>
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
worksheet
The worksheet assigned to the image. |
|
CellIndex
cellIndex
The cell index where the top left corner of the shape is positioned. |
|
System.Double
offsetX
The left offset of the top left corner of the shape relative to the top left corner of the cell index. |
|
System.Double
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
|
FloatingShapeType
|
Overrides
ImageSource
Gets or sets the image data source for this shape.
Declaration
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
public bool PreferRelativeToOriginalResize { get; set; }
Property Value
|
System.Boolean
The prefer relative to original resize. |