ShapeRange.ScaleHeight Method

Scales the height of the shape by a specified factor.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub ScaleHeight ( _
    Factor As Single, _
    RelativeToOriginalSize As MsoTriState, _
    Scale As MsoScaleFrom _
)
'Usage
Dim instance As ShapeRange
Dim Factor As Single
Dim RelativeToOriginalSize As MsoTriState
Dim Scale As MsoScaleFrom

instance.ScaleHeight(Factor, RelativeToOriginalSize, _
    Scale)
void ScaleHeight(
    float Factor,
    MsoTriState RelativeToOriginalSize,
    MsoScaleFrom Scale
)

Parameters

  • Factor
    Type: System.Single
    Required Single. Specifies the ratio between the height of the shape after you resize it and the current or original height. For example, to make a rectangle 50 percent larger, specify 1.5 for this argument.
  • RelativeToOriginalSize
    Type: MsoTriState
    Required MsoTriState. True to scale the shape relative to its original size. 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.
    MsoTriState can be one of the following constants:
    msoCTrue
    msoFalse
    msoTriStateMixed
    msoTriStateToggle
    msoTrue
  • Scale
    Type: MsoScaleFrom
    Optional MsoScaleFrom. The part of the shape that retains its position when the shape is scaled.
    MsoScaleFrom can be one of the following constants:
    msoScaleFromBottomRight
    msoScaleFromTopLeft default
    msoScaleFromMiddle

Remarks

For pictures and OLE objects, you can indicate whether you want to scale the shape relative to the original size or relative to the current size. Shapes other than pictures and OLE objects are always scaled relative to their current height.

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.Word Namespace