LineFormat.Style Property
Returns or sets the line style. Read/write.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property Style As MsoLineStyle
Get
Set
'Usage
Dim instance As LineFormat
Dim value As MsoLineStyle
value = instance.Style
instance.Style = value
MsoLineStyle Style { get; set; }
Property Value
Type: Microsoft.Office.Core.MsoLineStyle
MsoLineStyle
Remarks
The value of the Style property can be one of these MsoLineStyle constants.
msoLineSingle |
msoLineStyleMixed |
msoLineThickBetweenThin |
msoLineThickThin |
msoLineThinThick |
msoLineThinThin |
Examples
This example adds a thick, blue, compound line to myDocument. The compound line consists of a thick line with a thin line on either side of it.
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes.AddLine(10, 10, 250, 250).Line
.Style= msoLineThickBetweenThin
.Weight = 8
.ForeColor.RGB = RGB(0, 0, 255)
End With