Back to Devexpress

SpreadsheetSelectionOptions.AllowMultiSelection Property

officefileapi-devexpress-dot-xtraspreadsheet-dot-spreadsheetselectionoptions-ba11f9cd.md

latest2.8 KB
Original Source

SpreadsheetSelectionOptions.AllowMultiSelection Property

Gets or sets whether end-users are allowed to select multiple shapes or cell ranges in a worksheet.

Namespace : DevExpress.XtraSpreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
[DefaultValue(true)]
public bool AllowMultiSelection { get; set; }
vb
<DefaultValue(True)>
Public Property AllowMultiSelection As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true , if end-users can select multiple shapes or cell ranges simultaneously; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to AllowMultiSelection
SpreadsheetBehaviorOptions

.Selection .AllowMultiSelection

|

Remarks

If the AllowMultiSelection property is set to true , end-users can select multiple drawn objects (for example, pictures) or non-adjacent cell ranges in the worksheet simultaneously by holding down the CTRL key. If this property is set to false , multi-selection is not available in the SpreadsheetControl’s UI. Note that the AllowMultiSelection option does not affect multi-selection in code.

See Also

SetSelectedRanges

GetSelectedRanges()

SetSelectedShapes(IList<Shape>)

GetSelectedShapes()

SpreadsheetSelectionOptions Class

SpreadsheetSelectionOptions Members

DevExpress.XtraSpreadsheet Namespace