corelibraries-devexpress-dot-xtracharts-dot-selectionoptions-9ce384cb.md
Specifies keys that should be held down and mouse buttons that a user should click to select multiple chart elements in the Extended selection mode.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public ChartMouseAction ExtendedModeMouseAction { get; }
Public ReadOnly Property ExtendedModeMouseAction As ChartMouseAction
| Type | Description |
|---|---|
| ChartMouseAction |
An object that stores keys that should be held down and mouse buttons that a user should click to select multiple chart elements in the Extended selection mode.
|
You can access this nested property as listed below:
| Object Type | Path to ExtendedModeMouseAction |
|---|---|
| RadarDiagram |
.SelectionOptions .ExtendedModeMouseAction
| | SimpleDiagram |
.SelectionOptions .ExtendedModeMouseAction
|
The following example shows how to specify a mouse action used to select series points in the Extended selection mode:
XYDiagram xyDiagram = chartControl1.Diagram as XYDiagram;
chartControl1.SelectionMode = ElementSelectionMode.Extended;
chartControl1.SeriesSelectionMode = SeriesSelectionMode.Point;
xyDiagram.SelectionOptions.ExtendedModeMouseAction.ModifierKeys = ChartModifierKeys.Shift;
xyDiagram.SelectionOptions.ExtendedModeMouseAction.MouseButton = MouseButtons.Right;
Dim xyDiagram As XYDiagram = TryCast(chartControl1.Diagram, XYDiagram)
chartControl1.SelectionMode = ElementSelectionMode.Extended
chartControl1.SeriesSelectionMode = SeriesSelectionMode.Point
xyDiagram.SelectionOptions.ExtendedModeMouseAction.ModifierKeys = ChartModifierKeys.Shift
xyDiagram.SelectionOptions.ExtendedModeMouseAction.MouseButton = MouseButtons.Right
See Also