Share via


Chart.Perspective Property

Determines whether the extrusion appears in perspective. Read/write.

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

Syntax

'Declaration
Property Perspective As Integer
    Get
    Set
'Usage
Dim instance As Chart
Dim value As Integer

value = instance.Perspective

instance.Perspective = value
int Perspective { get; set; }

Property Value

Type: System.Int32
MsoTriState

Remarks

The value of the Perspective property can be one of these MsoTriState constants.

Constant

Description

msoFalse

The extrusion is a parallel, or orthographic, projection—that is, if the walls don't narrow toward a vanishing point.

msoTrue

The extrusion appears in perspective—that is, if the walls of the extrusion narrow toward a vanishing point.

Examples

This example sets the extrusion depth for shape one on myDocument to 100 points and specifies that the extrusion be parallel, or orthographic.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes(1).ThreeD

    .Visible = True

    .Depth = 100

    .Perspective= msoFalse

End With

See Also

Reference

Chart Interface

Chart Members

Microsoft.Office.Interop.PowerPoint Namespace