Class LineFormat (Word VBA)

The class LineFormat 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.

Set

To use a LineFormat class variable it first needs to be instantiated, for example

Dim lft as LineFormat
Set lft = Selection.Font.Line

The following procedures can be used to set variables of type LineFormat: ChartFormat.Line, Font.Line, InlineShape.Line, Shape.Line and ShapeRange.Line

Properties

BackColor returns or sets a ColorFormat object that represents the background color for a patterned line.

Dim cftBackColor As ColorFormat
Set cftBackColor = Selection.Font.Line.BackColor

BeginArrowheadLength returns or sets the length of the arrowhead at the beginning of the specified line.

Selection.Font.Line.BeginArrowheadLength =

BeginArrowheadStyle returns or sets the style of the arrowhead at the beginning of the specified line.

Selection.Font.Line.BeginArrowheadStyle =

BeginArrowheadWidth returns or sets the width of the arrowhead at the beginning of the specified line.

Selection.Font.Line.BeginArrowheadWidth =

DashStyle returns or sets the dash style for the specified line.

Selection.Font.Line.DashStyle =

EndArrowheadLength returns or sets the length of the arrowhead at the end of the specified line.

Selection.Font.Line.EndArrowheadLength =

EndArrowheadStyle returns or sets the style of the arrowhead at the end of the specified line.

Selection.Font.Line.EndArrowheadStyle =

EndArrowheadWidth returns or sets the width of the arrowhead at the end of the specified line.

Selection.Font.Line.EndArrowheadWidth =

ForeColor returns or sets a ColorFormat object that represents the foreground color for the line.

Dim cftForeColor As ColorFormat
Set cftForeColor = Selection.Font.Line.ForeColor

InsetPen msoTrue to draw lines inside a specified shape.

Selection.Font.Line.InsetPen =

Parent returns an object that represents the parent object of the specified LineFormat object.

Dim objParent As Object
Set objParent = Selection.Font.Line.Parent

Pattern returns or sets a value that represents the pattern applied to the specified line.

Selection.Font.Line.Pattern =

Style returns or sets the line format style.

Selection.Font.Line.Style =

Transparency returns or sets the degree of transparency of line.

Selection.Font.Line.Transparency =

Visible true if the specified object, or the formatting applied to it, is visible.

Selection.Font.Line.Visible =

Weight returns or sets the thickness of the specified line in points.

Selection.Font.Line.Weight =