Back to Devexpress

SpreadsheetSelectionBehaviorOptions.AllowMultiSelection Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetselectionbehavioroptions-c6295d0c.md

latest2.8 KB
Original Source

SpreadsheetSelectionBehaviorOptions.AllowMultiSelection Property

Gets or sets whether end-users can select multiple shapes or ranges in a worksheet. This is a dependency property.

Namespace : DevExpress.Xpf.Spreadsheet

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

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public bool AllowMultiSelection { get; set; }
vb
Public Property AllowMultiSelection As Boolean

Property Value

TypeDescription
Boolean

true, if end-users can select several 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 (using SpreadsheetControl.SetSelectedRanges or SpreadsheetControl.SetSelectedShapes methods).

See Also

SetSelectedRanges

SetSelectedShapes(IList<Shape>)

GetSelectedRanges()

GetSelectedShapes()

SpreadsheetSelectionBehaviorOptions Class

SpreadsheetSelectionBehaviorOptions Members

DevExpress.Xpf.Spreadsheet Namespace