Table of contents
TOC
Collapse the table of content
Expand the table of content

LineFormat Object (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Represents line and arrowhead formatting. For a line, the LineFormat object contains formatting information for the line itself; for a shape with a border, this object contains formatting information for the shape's border.

Example

Use the Line property to return a LineFormat object. The following example adds a blue, dashed line to the active document. There is a short, narrow oval at the line's starting point and a long, wide triangle at its endpoint.

Sub FormatLine() 
 With ActiveDocument.Pages(1).Shapes.AddLine(BeginX:=100, _ 
 BeginY:=100, EndX:=200, EndY:=300).Line 
 .DashStyle = msoLineDashDotDot 
 .ForeColor.RGB = RGB(50, 0, 128) 
 .BeginArrowheadLength = msoArrowheadShort 
 .BeginArrowheadStyle = msoArrowheadOval 
 .BeginArrowheadWidth = msoArrowheadNarrow 
 .EndArrowheadLength = msoArrowheadLong 
 .EndArrowheadStyle = msoArrowheadTriangle 
 .EndArrowheadWidth = msoArrowheadWide 
 End With 
End Sub

Methods

Name
PresetGradient

Properties

Name
Application
BackColor
BeginArrowheadLength
BeginArrowheadStyle
BeginArrowheadWidth
CapStyle
DashStyle
EndArrowheadLength
EndArrowheadStyle
EndArrowheadWidth
ForeColor
GradientAngle
GradientColorType
GradientStyle
GradientVariant
InsetPen
JoinStyle
Parent
Pattern
PresetGradientType
Style
Transparency
Type
Visible
Weight
© 2017 Microsoft