Format related procedures in class LineFormat (PowerPoint VBA)

This page presents procedures from class LineFormat related to the theme Format: BackColor, BeginArrowheadStyle, BeginArrowheadWidth, DashStyle, EndArrowheadStyle, EndArrowheadWidth, ForeColor, Style and Visible

BackColor

Returns or sets a ColorFormat object that represents the background color for the specified fill or patterned line.

Set ActiveWindow.RangeFromPoint.Line.BackColor = RGB(0,0,255)'blue

BeginArrowheadStyle

Returns or sets the style of the arrowhead at the beginning of the specified line.

The value of the BeginArrowheadStyle property can be one of these MsoArrowheadStyle constants

ActivePresentation.Slides(1).Shapes(1).Line.BeginArrowheadStyle = msoArrowheadStyleMixed

BeginArrowheadWidth

Returns or sets the width of the arrowhead at the beginning of the specified line.

The value of the BeginArrowheadWidth property can be one of these MsoArrowheadWidth constants

ActivePresentation.Slides(1).Shapes(1).Line.BeginArrowheadWidth = msoArrowheadWidthMixed

DashStyle

Returns or sets the dash style for the specified line.

The value of the DashStyle property can be one of these MsoLineDashStyle constants.

ActivePresentation.Slides(1).Shapes(1).Line.DashStyle = msoLineDashStyleMixed

EndArrowheadStyle

Returns or sets the style of the arrowhead at the end of the specified line.

The EndArrowheadStyle property value can be one of these MsoArrowheadStyle constants.

ActivePresentation.Slides(1).Shapes(1).Line.EndArrowheadStyle = msoArrowheadStyleMixed

EndArrowheadWidth

Returns or sets the width of the arrowhead at the end of the specified line.

The EndArrowheadWidth property value can be one of these MsoArrowheadWidth constants.

ActivePresentation.Slides(1).Shapes(1).Line.EndArrowheadWidth = msoArrowheadWidthMixed

ForeColor

Returns or sets a ColorFormat object that represents the foreground color for the fill, line, or shadow.

Set ActiveWindow.RangeFromPoint.Line.ForeColor = RGB(0,0,255)'blue

Style

Returns or sets the line style.

The value of the Style property can be one of these MsoLineStyle constants.

ActivePresentation.Slides(1).Shapes(1).Line.Style = msoLineStyleMixed

Visible

Returns or sets the visibility of the specified object or the formatting applied to the specified object.

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

ActiveWindow.RangeFromPoint.Line.Visible = msoTrue