New to Telerik Document ProcessingStart a free 30-day trial

Abstract base for floating shapes that expose settable position and size properties, allowing direct manipulation of cell anchoring and dimensions.

Definition

Constructors

Initializes a new floating resizable shape anchored to the specified cell with pixel offsets, wrapping the provided shape element.

C#
protected FloatingResizableShapeBase(Worksheet worksheet, ShapeBase shape, CellIndex cellIndex, double offsetX, double offsetY)
Parameters:worksheetWorksheet

The worksheet assigned to the floating resizable shape.

shapeShapeBase

The shape assigned to the floating resizable shape.

cellIndexCellIndex

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

offsetXdouble

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

offsetYdouble

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

Properties

Cell where the shape's top-left corner is anchored, defining the primary position reference.

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

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

Height of the shape in pixels, settable directly without invoking commands.

C#
public double Height { get; set; }
Property Value:

The height of the shape.

Horizontal offset in pixels from the anchor cell's left edge to the shape's left edge, allowing precise sub-cell positioning.

C#
public double OffsetX { get; set; }
Property Value:

The left offset.

Vertical offset in pixels from the anchor cell's top edge to the shape's top edge, allowing precise sub-cell positioning.

C#
public double OffsetY { get; set; }
Property Value:

The top offset.

Width of the shape in pixels, settable directly without invoking commands.

C#
public double Width { get; set; }
Property Value:

The width of the shape.