Share via


ShapeRange.Height Property

Returns or sets the height of the specified object, in points. Read/write.

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

Syntax

'Declaration
Property Height As Single
    Get
    Set
'Usage
Dim instance As ShapeRange
Dim value As Single

value = instance.Height

instance.Height = value
float Height { get; set; }

Property Value

Type: System.Single
Single

Remarks

The Height property of a Shape object returns or sets the height of the forward-facing surface of the specified shape. This measurement doesn't include shadows or 3-D effects.

Examples

This example sets the height of document window two to half the height of the application window.

Windows(2).Height= Application.Height/ 2

This example sets the height for row two in the specified table to 100 points (72 points per inch).

ActivePresentation.Slides(2).Shapes(5).Table.Rows(2).Height= 100

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.PowerPoint Namespace