Back to Devexpress

SelectionOptions.ExtendedModeMouseAction Property

corelibraries-devexpress-dot-xtracharts-dot-selectionoptions-9ce384cb.md

latest3.1 KB
Original Source

SelectionOptions.ExtendedModeMouseAction Property

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

Declaration

csharp
public ChartMouseAction ExtendedModeMouseAction { get; }
vb
Public ReadOnly Property ExtendedModeMouseAction As ChartMouseAction

Property Value

TypeDescription
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.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ExtendedModeMouseAction
RadarDiagram

.SelectionOptions .ExtendedModeMouseAction

| | SimpleDiagram |

.SelectionOptions .ExtendedModeMouseAction

|

Remarks

The following example shows how to specify a mouse action used to select series points in the Extended selection mode:

csharp
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;
vb
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

SelectionOptions Class

SelectionOptions Members

DevExpress.XtraCharts Namespace