Back to Devexpress

Worksheet.GetSelectedShapes() Method

officefileapi-devexpress-dot-spreadsheet-dot-worksheet-94543ab0.md

latest3.2 KB
Original Source

Worksheet.GetSelectedShapes() Method

Returns shapes currently selected in the worksheet.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
IList<Shape> GetSelectedShapes()
vb
Function GetSelectedShapes As IList(Of Shape)

Returns

TypeDescription
IList<Shape>

A list of the Shape objects.

|

Remarks

All shapes in a worksheet are contained in the ShapeCollection, accessible via the Worksheet.Shapes property. Use the GetSelectedShapes method to get the list of shapes selected in the worksheet. To select multiple shapes simultaneously, use the Worksheet.SetSelectedShapes 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 specify a single shape (for example, a picture) selected in the worksheet, use the Worksheet.SelectedShape or Worksheet.SelectedPicture property.

The SelectedPicture , SelectedShape , GetSelectedShapes and SetSelectedShapes members of the SpreadsheetControl or SpreadsheetControl object allow you to select shapes in the worksheet that is currently active in the control.

See Also

SetSelectedShapes(IList<Shape>)

SelectedShape

SelectedPicture

Worksheet Interface

Worksheet Members

DevExpress.Spreadsheet Namespace