public bool SetSelectedShapes( IList<Shape> Shapes )
Public Function SetSelectedShapes( Shapes As IList(Of Shape) ) As Boolean
A list of the Shape objects.
true if shapes are selected successfully; otherwise false. If you pass a list that contains at least one shape located in a worksheet that is not active, the method returns false.
All shapes in a worksheet are contained in the ShapeCollection, accessible via the Worksheet.Shapes property. Use the SetSelectedShapes method to select multiple shapes in the active worksheet simultaneously. To get the list of shapes selected in the active worksheet, use the SpreadsheetControl.GetSelectedShapes method. To specify whether multi-selection is available to end-users in the SpreadsheetControl, use the SpreadsheetSelectionOptions.AllowMultiSelection option accessible via the SpreadsheetControl.Options.Behavior.Selection.AllowMultiSelection notation.
To select shapes in a specific worksheet of the document loaded in the SpreadsheetControl, use the Worksheet.SelectedPicture, Worksheet.SelectedShape, Worksheet.SetSelectedShapes and Worksheet.GetSelectedShapes members of the corresponding worksheet object.