Compartir a través de


ShapeRange.ScaleHeight Method

Scales the height of the shapes in the range by a specified factor.

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

Syntax

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

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

Parameters

  • Factor
    Type: System.Single
    Specifies the ratio between the height of the shapes after you resize them and their current or original height. For example, to make shapes 50 percent larger, specify 1.5 for this parameter.

Remarks

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

The RelativeToOriginalSize parameter value can be one of the following MsoTriState constants. You can specify msoTrue for this argument only if the specified shapes are pictures or OLE objects.

Constant

Description

msoFalse

Scales the shapes relative to their current sizes.

msoTrue

Scales the shapes relative to their original sizes.

The fScale parameter value can be one of the following MsoTriState constants. The default is msoScaleFromTopLeft.

msoScaleFromBottomRight

msoScaleFromMiddle

msoScaleFromTopLeft

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.PowerPoint Namespace