Excel.TableAddedEventArgs interface

提供有关引发了 OnAdded 事件的表的信息。Provides information about the table that raised the OnAdded event.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

属性

source

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

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

tableId

获取已添加的表格的 ID。Gets the id of the table that is added.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

type

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

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

worksheetId

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

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

属性详细信息

source

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

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

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

属性值

Excel.EventSource | "Local" | "Remote"

tableId

获取已添加的表格的 ID。Gets the id of the table that is added.

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

tableId: string;

属性值

string

type

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

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

type: "TableAdded";

属性值

"TableAdded"

worksheetId

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

[API 集: ExcelApi 1.9][ API set: ExcelApi 1.9 ]

worksheetId: string;

属性值

string