[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.IShapeBase.ScaleHeight

ScaleHeight Method

ScaleHeight(double, bool, ScaleFrom)

Scales the height of the shape by a specified factor.

Declaration
void ScaleHeight(double factor, bool relativeToOriginalSize, ScaleFrom scale = ScaleFrom.TopLeft)
Sub ScaleHeight(factor As Double, relativeToOriginalSize As Boolean, Optional scale As ScaleFrom = ScaleFrom.TopLeft)
Parameters
Type Name Description
double factor

Specifies the ratio between the height of the shape after you resize it and the current or original height.

bool relativeToOriginalSize

false to scale it relative to its current size.

ScaleFrom scale

One of the constants of ScaleFrom which specifies which part of the shape retains its position when the shape is scaled.

Remarks

Shapes other than pictures and OLE objects are always scaled relative to their current height.