Share via


LineFormat.Pattern Property

Sets or returns a value that represents the pattern applied to the specified line. Read/write.

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

Syntax

'Declaration
Property Pattern As MsoPatternType
    Get
    Set
'Usage
Dim instance As LineFormat
Dim value As MsoPatternType

value = instance.Pattern

instance.Pattern = value
MsoPatternType Pattern { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoPatternType
[MsoPatternType#SameCHM]

Examples

This example adds a patterned line to myDocument.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes.AddLine(10, 100, 250, 0).Line

    .Weight = 6

    .ForeColor.RGB = RGB(0, 0, 255)

    .BackColor.RGB = RGB(128, 0, 0)

    .Pattern= msoPatternDarkDownwardDiagonal

End With

See Also

Reference

LineFormat Interface

LineFormat Members

Microsoft.Office.Interop.PowerPoint Namespace