LegendKey Members

Include Protected Members
Include Inherited Members

Represents a legend key in a chart legend.

The LegendKey type exposes the following members.

Properties

  Name Description
Public property Application Returns an Application object that represents the Microsoft Excel application.
Public property Border Returns a Border object that represents the border of the object.
Public property Creator Returns a 32-bit integer that indicates the application in which this object was created.
Public property 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.
Public property Format Returns the ChartFormat object. Read-only.
Public property Height The height, in points, of the object.
Public property Interior Returns an Interior object that represents the interior of the specified object.
Public property InvertIfNegative True if Microsoft Excel inverts the pattern in the item when it corresponds to a negative number.
Public property Left The distance, in points, from the left edge of the object to the left edge of the chart area.
Public property 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.
Public property 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.
Public property 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.
Public property 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.
Public property MarkerSize Returns or sets the data-marker size, in points.
Public property MarkerStyle Returns or sets the marker style for a legend key in a line chart, scatter chart, or radar chart.
Public property Parent Returns the parent object for the specified object.
Public property PictureType Returns or sets the way pictures are displayed on a legend key.
Public property 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).
Public property 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.
Public property Shadow True if the font is a shadow font or if the object has a shadow.
Public property Smooth True if curve smoothing is turned on for the line chart or scatter chart. Applies only to line and scatter charts.
Public property Top The distance, in points, from the top of the chart area.
Public property Width The width, in points, of the object.

Top

Methods

  Name Description
Public method ClearFormats Clears the formatting of the object.
Public method Delete Deletes the object.
Public method Select Selects the object.

Top

See Also

Reference

LegendKey Interface

Microsoft.Office.Interop.Excel Namespace