Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Drawing Namespace / IShapeBase Interface / ScaleWidth Method
Specifies the ratio between the width of the shape after you resize it and the current or original width.
false to scale it relative to its current size.
One of the constants of ScaleFrom which specifies which part of the shape retains its position when the shape is scaled.


In This Topic
    ScaleWidth Method (IShapeBase)
    In This Topic
    Scales the width of the shape by a specified factor.
    Syntax
    'Declaration
     
    
    Sub ScaleWidth( _
       ByVal factor As Double, _
       ByVal relativeToOriginalSize As Boolean, _
       Optional ByVal scale As ScaleFrom _
    ) 
    'Usage
     
    
    Dim instance As IShapeBase
    Dim factor As Double
    Dim relativeToOriginalSize As Boolean
    Dim scale As ScaleFrom
     
    instance.ScaleWidth(factor, relativeToOriginalSize, scale)

    Parameters

    factor
    Specifies the ratio between the width of the shape after you resize it and the current or original width.
    relativeToOriginalSize
    false to scale it relative to its current size.
    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.
    See Also