Excel.Interfaces.ChartLegendData interface

描述通过调用 "chartLegend ()" 返回的数据的接口。An interface describing the data returned by calling "chartLegend.toJSON()".

属性

format

表示图表图例的格式,包括填充和字体格式。Represents the formatting of a chart legend, which includes fill and font formatting. 只读。Read-only.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

height

表示图表上的图例的高度 (以磅为单位)。Represents the height, in points, of the legend on the chart. 如果图例不可见, 则为 Null。Null if legend is not visible.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

left

代表图表图例的左侧 (以磅为单位)。Represents the left, in points, of a chart legend. 如果图例不可见, 则为 Null。Null if legend is not visible.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

legendEntries

表示图例中 legendEntries 的集合。Represents a collection of legendEntries in the legend. 只读。Read-only.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

overlay

表示图表图例是否应该与图表的主体重叠的布尔值。Boolean value for whether the chart legend should overlap with the main body of the chart.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

position

表示图例在图表上的位置。Represents the position of the legend on the chart. 有关详细信息, 请参阅 ChartLegendPosition。See Excel.ChartLegendPosition for details.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

showShadow

表示图例在图表上是否有阴影。Represents if the legend has a shadow on the chart.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

top

表示图表图例顶部。Represents the top of a chart legend.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

visible

表示 ChartLegend 对象是否可见的布尔值。A boolean value the represents the visibility of a ChartLegend object.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

width

表示图表上的图例的宽度 (以磅为单位)。Represents the width, in points, of the legend on the chart. 如果图例不可见, 则为 Null。Null if legend is not visible.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

属性详细信息

format

表示图表图例的格式,包括填充和字体格式。Represents the formatting of a chart legend, which includes fill and font formatting. 只读。Read-only.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

format?: Excel.Interfaces.ChartLegendFormatData;

属性值

height

表示图表上的图例的高度 (以磅为单位)。Represents the height, in points, of the legend on the chart. 如果图例不可见, 则为 Null。Null if legend is not visible.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

height?: number;

属性值

number

left

代表图表图例的左侧 (以磅为单位)。Represents the left, in points, of a chart legend. 如果图例不可见, 则为 Null。Null if legend is not visible.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

left?: number;

属性值

number

legendEntries

表示图例中 legendEntries 的集合。Represents a collection of legendEntries in the legend. 只读。Read-only.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

legendEntries?: Excel.Interfaces.ChartLegendEntryData[];

属性值

Excel.Interfaces.ChartLegendEntryData[]

overlay

表示图表图例是否应该与图表的主体重叠的布尔值。Boolean value for whether the chart legend should overlap with the main body of the chart.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

overlay?: boolean;

属性值

boolean

position

表示图例在图表上的位置。Represents the position of the legend on the chart. 有关详细信息, 请参阅 ChartLegendPosition。See Excel.ChartLegendPosition for details.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

position?: Excel.ChartLegendPosition | "Invalid" | "Top" | "Bottom" | "Left" | "Right" | "Corner" | "Custom";

属性值

Excel.ChartLegendPosition | "Invalid" | "Top" | "Bottom" | "Left" | "Right" | "Corner" | "Custom"

showShadow

表示图例在图表上是否有阴影。Represents if the legend has a shadow on the chart.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

showShadow?: boolean;

属性值

boolean

top

表示图表图例顶部。Represents the top of a chart legend.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

top?: number;

属性值

number

visible

表示 ChartLegend 对象是否可见的布尔值。A boolean value the represents the visibility of a ChartLegend object.

[API 集: ExcelApi 1.1][ API set: ExcelApi 1.1 ]

visible?: boolean;

属性值

boolean

width

表示图表上的图例的宽度 (以磅为单位)。Represents the width, in points, of the legend on the chart. 如果图例不可见, 则为 Null。Null if legend is not visible.

[API 集: ExcelApi 1.7][ API set: ExcelApi 1.7 ]

width?: number;

属性值

number