Interface ILegendKey
public interface ILegendKey
Represents a legend key in a chart legend.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the formatting of the object.voiddelete()Deletes the object.Returns theIChartFormatobject.booleanGets whether the pattern is inverted when the number is negative (True if Microsoft Excel inverts the pattern in the item when it corresponds to a negative number).Gets market format.intReturns the data-marker size, in points.Returns the marker style for a legend key in a line chart, scatter chart, or radar chart.Returns the parent object for the specified object.doubleReturns the unit for each picture on the chart if the Microsoft.Office.Interop.Excel.LegendKey.PictureType property is set to StackScale (if not, this property is ignored).booleanGets a boolean value indicating whether the font is a shadow font or if the object has a shadow.booleanGets a boolean value indicating whether curve smoothing is turned on for the line chart or scatter chart.voidsetInvertIfNegative(boolean value) Sets whether the pattern is inverted when the number is negative (True if Microsoft Excel inverts the pattern in the item when it corresponds to a negative number).voidsetMarkerSize(int value) Sets the data-marker size, in points.voidsetMarkerStyle(MarkerStyle value) Sets the marker style for a legend key in a line chart, scatter chart, or radar chart.voidsetPictureUnit(double value) Sets the unit for each picture on the chart if the Microsoft.Office.Interop.Excel.LegendKey.PictureType property is set to StackScale (if not, this property is ignored).voidsetShadow(boolean value) Sets a boolean value indicating whether the font is a shadow font or if the object has a shadow.voidsetSmooth(boolean value) Sets a boolean value indicating whether curve smoothing is turned on for the line chart or scatter chart.
-
Method Details
-
getFormat
IChartFormat getFormat()Returns theIChartFormatobject. -
getInvertIfNegative
boolean getInvertIfNegative()Gets whether the pattern is inverted when the number is negative (True if Microsoft Excel inverts the pattern in the item when it corresponds to a negative number). -
setInvertIfNegative
void setInvertIfNegative(boolean value) Sets whether the pattern is inverted when the number is negative (True if Microsoft Excel inverts the pattern in the item when it corresponds to a negative number). -
getMarkerFormat
IChartFormat getMarkerFormat()Gets market format. -
getMarkerSize
int getMarkerSize()Returns the data-marker size, in points. -
setMarkerSize
void setMarkerSize(int value) Sets the data-marker size, in points. -
getMarkerStyle
MarkerStyle getMarkerStyle()Returns the marker style for a legend key in a line chart, scatter chart, or radar chart. -
setMarkerStyle
Sets the marker style for a legend key in a line chart, scatter chart, or radar chart. -
getParent
ILegendEntry getParent()Returns the parent object for the specified object. -
getPictureUnit
double getPictureUnit()Returns the unit for each picture on the chart if the Microsoft.Office.Interop.Excel.LegendKey.PictureType property is set to StackScale (if not, this property is ignored). -
setPictureUnit
void setPictureUnit(double value) Sets the unit for each picture on the chart if the Microsoft.Office.Interop.Excel.LegendKey.PictureType property is set to StackScale (if not, this property is ignored). -
getShadow
boolean getShadow()Gets a boolean value indicating whether the font is a shadow font or if the object has a shadow. -
setShadow
void setShadow(boolean value) Sets a boolean value indicating whether the font is a shadow font or if the object has a shadow. -
getSmooth
boolean getSmooth()Gets a boolean value indicating whether curve smoothing is turned on for the line chart or scatter chart. Applies only to line and scatter charts. -
setSmooth
void setSmooth(boolean value) Sets a boolean value indicating whether curve smoothing is turned on for the line chart or scatter chart. Applies only to line and scatter charts. -
clearFormats
void clearFormats()Clears the formatting of the object. -
delete
void delete()Deletes the object.
-