Excel.ChartAddedEventArgs interface

提供有关引发添加的事件的图表的信息。Provides information about the chart that raised the Added event.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

属性

chartId

获取已添加至工作表的图表的 ID。Gets the id of the chart that is added to the worksheet.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

source

获取事件源。Gets the source of the event. 有关详细信息,请参阅 Excel.EventSource。See Excel.EventSource for details.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

type

获取事件的类型。Gets the type of the event. 有关详细信息,请参阅 Excel.EventType。See Excel.EventType for details.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

worksheetId

获取已在其中添加图表的工作表的 ID。Gets the id of the worksheet in which the chart is added.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

属性详细信息

chartId

获取已添加至工作表的图表的 ID。Gets the id of the chart that is added to the worksheet.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

chartId: string;

属性值

string

source

获取事件源。Gets the source of the event. 有关详细信息,请参阅 Excel.EventSource。See Excel.EventSource for details.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

source: Excel.EventSource | "Local" | "Remote";

属性值

Excel.EventSource | "Local" | "Remote"

type

获取事件的类型。Gets the type of the event. 有关详细信息,请参阅 Excel.EventType。See Excel.EventType for details.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

type: "ChartAdded";

属性值

"ChartAdded"

worksheetId

获取已在其中添加图表的工作表的 ID。Gets the id of the worksheet in which the chart is added.

[API 集: ExcelApi 1.8][ API set: ExcelApi 1.8 ]

worksheetId: string;

属性值

string