LegendKey LegendKey LegendKey Interface

Definition

Represents a legend key in a chart legend.

public interface class LegendKey
[System.Runtime.InteropServices.Guid("000208BC-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface LegendKey
Public Interface LegendKey
Attributes

Remarks

Each legend key is a graphic that visually links a legend entry with its associated series or trendline in the chart. The legend key is linked to its associated series or trendline in such a way that changing the formatting of one simultaneously changes the formatting of the other.

Use the LegendKey property to return the LegendKey object.

Properties

Application Application Application

Returns an Application object that represents the Microsoft Excel application.

Border Border Border

Returns a Border object that represents the border of the object.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which this object was created.

Fill Fill Fill

Returns a FillFormat object for a specified shape or a ChartFillFormat object for a specified chart that contains fill formatting properties for the shape or chart.

Format Format Format

Returns the ChartFormat object. Read-only.

Height Height Height

The height, in points, of the object.

Interior Interior Interior

Returns an Interior object that represents the interior of the specified object.

InvertIfNegative InvertIfNegative InvertIfNegative

True if Microsoft Excel inverts the pattern in the item when it corresponds to a negative number.

Left Left Left

The distance, in points, from the left edge of the object to the left edge of the chart area.

MarkerBackgroundColor MarkerBackgroundColor MarkerBackgroundColor

Sets the marker background color as an RGB value or returns the corresponding color index value. Applies only to line, scatter, and radar charts.

MarkerBackgroundColorIndex MarkerBackgroundColorIndex 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. Applies only to line, scatter, and radar charts.

MarkerForegroundColor MarkerForegroundColor MarkerForegroundColor

Sets the marker background color as an RGB value or returns the corresponding color index value. Applies only to line, scatter, and radar charts.

MarkerForegroundColorIndex MarkerForegroundColorIndex 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. Applies only to line, scatter, and radar charts.

MarkerSize MarkerSize MarkerSize

Returns or sets the data-marker size, in points.

MarkerStyle MarkerStyle MarkerStyle

Returns or sets the marker style for a legend key in a line chart, scatter chart, or radar chart.

Parent Parent Parent

Returns the parent object for the specified object.

PictureType PictureType PictureType

Returns or sets the way pictures are displayed on a legend key.

PictureUnit PictureUnit PictureUnit

Returns or sets the unit for each picture on the chart if the PictureType property is set to xlStackScale (if not, this property is ignored).

PictureUnit2 PictureUnit2 PictureUnit2

Returns or sets the unit for each picture on the chart if the PictureType property is set to xlStackScale(if not, this property is ignored). Read/write Double.

Shadow Shadow Shadow

True if the font is a shadow font or if the object has a shadow.

Smooth Smooth Smooth

True if curve smoothing is turned on for the line chart or scatter chart. Applies only to line and scatter charts.

Top Top Top

The distance, in points, from the top of the chart area.

Width Width Width

The width, in points, of the object.

Methods

ClearFormats() ClearFormats() ClearFormats()

Clears the formatting of the object.

Delete() Delete() Delete()

Deletes the object.

Select() Select() Select()

Selects the object.

Applies to