Spread Windows Forms 14.0
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
    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