Format related procedures in class LegendKey (PowerPoint VBA)

This page presents procedures from class LegendKey related to the theme Format: ClearFormats, Format, Height, MarkerBackgroundColor, MarkerBackgroundColorIndex, MarkerForegroundColor, MarkerForegroundColorIndex, MarkerStyle and Width

ClearFormats

Clears the formatting of the object.

ActiveWindow.RangeFromPoint.Chart.Legend.LegendEntries(1).LegendKey.ClearFormats

Format

Returns the line, fill, and effect formatting for the object.

Dim cftFormatted As ChartFormat
Set cftFormatted = ActiveWindow.RangeFromPoint.Chart.Legend.LegendEntries(1).LegendKey.Format

Height

Returns the height, in points, of the object.

Dim dblHeight As Double
dblHeight = ActiveWindow.RangeFromPoint.Chart.Legend.LegendEntries(1).LegendKey.Height

MarkerBackgroundColor

Sets the marker background color as an RGB value or returns the corresponding color index value.

This property applies only to line, scatter, and radar charts.

ActiveWindow.RangeFromPoint.Chart.Legend.LegendEntries(1).LegendKey.MarkerBackgroundColor = RGB(0,0,255)'blue

MarkerBackgroundColorIndex

Returns or sets the marker background color as an index into the current color palette, or as one of the following XlColorIndex constants: xlColorIndexAutomatic or xlColorIndexNone.

Possible Values are xlColorIndexAutomatic - Automatic color, xlColorIndexNone - No color.

This property applies only to line, scatter, and radar charts.

ActiveWindow.RangeFromPoint.Chart.Legend.LegendEntries(1).LegendKey.MarkerBackgroundColorIndex = xlColorIndexAutomatic

MarkerForegroundColor

Sets the marker foreground color as an RGB value or returns the corresponding color index value.

This property applies only to line, scatter, and radar charts.

ActiveWindow.RangeFromPoint.Chart.Legend.LegendEntries(1).LegendKey.MarkerForegroundColor = RGB(0,0,255)'blue

MarkerForegroundColorIndex

Returns or sets the marker foreground color as an index into the current color palette, or as one of the following XlColorIndex constants: xlColorIndexAutomatic or xlColorIndexNone.

Possible Values are xlColorIndexAutomatic - Automatic color, xlColorIndexNone - No color.

This property applies only to line, scatter, and radar charts.

ActiveWindow.RangeFromPoint.Chart.Legend.LegendEntries(1).LegendKey.MarkerForegroundColorIndex = xlColorIndexAutomatic

MarkerStyle

Returns or sets the marker style for a point or series in a line chart, scatter chart, or radar chart.

Possible Values are xlMarkerStyleAutomatic - Automatic markers, xlMarkerStyleCircle - Circular markers, xlMarkerStyleDash - Long bar markers, xlMarkerStyleDiamond - Diamond-shaped markers, xlMarkerStyleDot - Short bar markers, xlMarkerStyleNone - No markers, xlMarkerStylePicture - Picture markers, xlMarkerStylePlus - Square markers with a plus sign, xlMarkerStyleSquare - Square markers, xlMarkerStyleStar - Square markers with an asterisk, xlMarkerStyleTriangle - Triangular markers, xlMarkerStyleX - Square markers with an X.
ActiveWindow.RangeFromPoint.Chart.Legend.LegendEntries(1).LegendKey.MarkerStyle = xlMarkerStyleAutomatic

Width

Returns the width, in points, of the object.

Dim dblWidth As Double
dblWidth = ActiveWindow.RangeFromPoint.Chart.Legend.LegendEntries(1).LegendKey.Width