Code: Select all
IMonitorSelection monitor = GetService<IMonitorSelection>();
ISelectionContainer[] selection = monitor.Selection;
ISelectionContainer Selection { get; } - returning a single item
BTW, the sample project (CustomLookupTablePackage) that is supplied with the SDK fails to compile (as does my projects), reporting :
Code: Select all
Cannot implicitly convert type 'SoftPro.Select.Shell.ISelectionContainer' to 'SoftPro.Select.Shell.ISelectionContainer[]'