The LayoutChartLegendKey object represents a key of the chart legend. A legend key is displayed as a rectangle to the left of legend element name. A key defines the appearance of data series on the chart. Thank to that you can distinguish data series and associate them with corresponding legend elements.
The legend keys are created automatically for all data series in the chart. Use the LayoutChartLegend::Keys collection to access keys. Access to collection items is possible both by series name and by ordinal number