Shape.ScaleWidth Method
Scales the width of the shape by a specified factor.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Sub ScaleWidth ( _
Factor As Single, _
RelativeToOriginalSize As MsoTriState, _
Scale As Object _
)
'Usage
Dim instance As Shape
Dim Factor As Single
Dim RelativeToOriginalSize As MsoTriState
Dim Scale As Object
instance.ScaleWidth(Factor, RelativeToOriginalSize, _
Scale)
void ScaleWidth(
float Factor,
MsoTriState RelativeToOriginalSize,
Object Scale
)
Parameters
Factor
Type: System.SingleRequired Single. Specifies the ratio between the width of the shape after you resize it and the current or original width. For example, to make a rectangle 50 percent larger, specify 1.5 for this argument.
RelativeToOriginalSize
Type: Microsoft.Office.Core.MsoTriStateRequired MsoTriState. False to scale it relative to its current size. You can specify True for this argument only if the specified shape is a picture or an OLE object.
Scale
Type: System.ObjectOptional MsoScaleFrom. Specifies which part of the shape retains its position when the shape is scaled.
Remarks
For pictures and OLE objects, you can indicate whether you want to scale the shape relative to the original or the current size. Shapes other than pictures and OLE objects are always scaled relative to their current width.