Share via


LineFormat.InsetPen Property

Detemines whether to draw lines on the inside of a specified shape. Read/write.

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

Syntax

'Declaration
Property InsetPen As MsoTriState
    Get
    Set
'Usage
Dim instance As LineFormat
Dim value As MsoTriState

value = instance.InsetPen

instance.InsetPen = value
MsoTriState InsetPen { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoTriState
MsoTriState

Remarks

An error occurs if this property attempts to set an inset pen drawing on any Microsoft Office AutoShape that does not support inset pen drawing.

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

Constant

Description

msoFalse

The default. An inset pen is not enabled.

msoTrue

An inset pen is enabled.

Examples

The following line of code enables an inset pen for a shape. This example assumes that the first slide of the active presentation contains a shape and that the shape supports inset pen drawing.

Sub DrawLinesInsideShape

    ActivePresentation.Slides(1).Shapes(1).Line.InsetPen= msoTrue

End Sub

See Also

Reference

LineFormat Interface

LineFormat Members

Microsoft.Office.Interop.PowerPoint Namespace