[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.IShapeBase.ScaleWidth

ScaleWidth Method

ScaleWidth(double, bool, ScaleFrom)

Scales the width of the shape by a specified factor.

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

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

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 width.