Skip to main content
A newer version of this page is available. .

ElementSelectionMode Enum

Lists selection modes available for the end-user.

Namespace: DevExpress.XtraTreeMap

Assembly: DevExpress.XtraTreeMap.v18.1.dll

Declaration

public enum ElementSelectionMode

Members

Name Description
None

Selection is disabled.

Single

One tree map item can be selected at a time.

Multiple

Several tree map items can be selected at the same time.

Extended

Extended single selection mode, allowing you to select several items with the SHIFT key held down.

Related API Members

The following properties accept/return ElementSelectionMode values:

Remarks

Values of this enumeration are used to specify the TreeMapControl.SelectionMode property.

Example

To specify end-user permissions, use the TreeMapControl.EnableHighlighting and TreeMapControl.SelectionMode properties.

using DevExpress.XtraTreeMap;
using System;
using System.Windows.Forms;

namespace HighlightingAndSelection {
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e) {
            chkEnableHighlighting.Checked = treeMap.EnableHighlighting;

            lbSelectionMode.DataSource = Enum.GetValues(typeof(ElementSelectionMode));
            lbSelectionMode.SelectedValue = treeMap.SelectionMode;
        }

        private void chkEnableHighlighting_CheckedChanged(object sender, EventArgs e) {
            treeMap.EnableHighlighting = chkEnableHighlighting.Checked;
        }

        private void lbSelectionMode_SelectedIndexChanged(object sender, EventArgs e) {
            treeMap.SelectionMode = (ElementSelectionMode)lbSelectionMode.SelectedValue;
        }
    }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ElementSelectionMode enum.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also