SpreadsheetGear 2017
ScaleWidth Method (IShape)






SpreadsheetGear.Shapes Namespace > IShape Interface : ScaleWidth Method
Specifies the factor by which to scale the original or current size.
SPecifies whether the original size of pictures should be used as the starting size.
Specifies whether the size should be scaled from the top-left, middle or bottom-right of the shape.
Scales this shape by the specified factor from the original or current size and from the specified position.
Syntax
'Declaration
 
Sub ScaleWidth( _
   ByVal factor As System.Double, _
   ByVal useOriginalSize As System.Boolean, _
   ByVal position As ScaleFrom _
) 
'Usage
 
Dim instance As IShape
Dim factor As System.Double
Dim useOriginalSize As System.Boolean
Dim position As ScaleFrom
 
instance.ScaleWidth(factor, useOriginalSize, position)
void ScaleWidth( 
   System.double factor,
   System.bool useOriginalSize,
   ScaleFrom position
)
procedure ScaleWidth( 
    factor: System.Double;
    useOriginalSize: System.Boolean;
    position: ScaleFrom
); 
function ScaleWidth( 
   factor : System.double,
   useOriginalSize : System.boolean,
   position : ScaleFrom
);
void ScaleWidth( 
   System.double factor,
   System.bool useOriginalSize,
   ScaleFrom position
) 
void ScaleWidth( 
   System.double factor,
   System.bool useOriginalSize,
   ScaleFrom position
) 

Parameters

factor
Specifies the factor by which to scale the original or current size.
useOriginalSize
SPecifies whether the original size of pictures should be used as the starting size.
position
Specifies whether the size should be scaled from the top-left, middle or bottom-right of the shape.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IShape Interface
IShape Members