Share via


AllowUISelection Property

Returns or sets whether an element on a chart is selected when the user clicks on an element with the mouse. Read/write Boolean.

expression.AllowUISelection

*expression   * Required. An expression that returns a ChartSpace object.

Remarks

If this property is set to True, when a user clicks on a chart element with the mouse, the current list of selections is emptied and replaced with only the element that was clicked by the user. If this property is set to False, when the user clicks on an element with the mouse, the current list of selections is preserved and the mouse click event is ignored. The default value is True.

Example

The following example disables the AllowUISelection property.

ChartSpace1.AllowUISelection = False

Applies to | ChartSpace Object

See Also | ChSelectionCollection Collection | SelectionCollection Property