Excel.WorksheetSelectionChangedEventArgs interface

提供有关引发了 SelectionChanged 事件的工作表的信息。Provides information about the worksheet that raised the SelectionChanged event.

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

属性

address

获取区域地址,该地址表示特定工作表上的选定区域。Gets the range address that represents the selected area of a specific worksheet.

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

type

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

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

worksheetId

获取其中的选定区域发生更改的工作表的 ID。Gets the id of the worksheet in which the selection changed.

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

属性详细信息

address

获取区域地址,该地址表示特定工作表上的选定区域。Gets the range address that represents the selected area of a specific worksheet.

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

address: string;

属性值

string

type

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

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

type: "WorksheetSelectionChanged";

属性值

"WorksheetSelectionChanged"

worksheetId

获取其中的选定区域发生更改的工作表的 ID。Gets the id of the worksheet in which the selection changed.

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

worksheetId: string;

属性值

string