Back to Devexpress

SvgImageBoxOptionsSelection.SelectionMode Property

windowsforms-devexpress-dot-xtraeditors-dot-svgimageboxoptionsselection.md

latest4.4 KB
Original Source

SvgImageBoxOptionsSelection.SelectionMode Property

Gets or sets item selection mode.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DefaultValue(SvgImageItemSelectionMode.Default)]
public SvgImageItemSelectionMode SelectionMode { get; set; }
vb
<DefaultValue(SvgImageItemSelectionMode.Default)>
Public Property SelectionMode As SvgImageItemSelectionMode

Property Value

TypeDefaultDescription
DevExpress.XtraEditors.SvgImageItemSelectionModeDefault

Item selection mode. The Default value is equivalent to Multiple.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to SelectionMode
SvgImageBox

.OptionsSelection .SelectionMode

|

Remarks

Use the SelectionMode to specify item selection mode. The property can be set to the following values:

  • Multiple - A user can select multiple items by clicking on them. The UseCtrlToMultiSelect property specifies whether the CTRL key needs to be pressed to select items in this mode.

  • Single - A user can select one item. When he/she clicks a new item, the previously selected item is deselected.

To customize the appearance of selected items, use the SvgImageBox.ItemAppearance and SvgImageItem.Appearance properties.

To access currently selected items, select/deselect items and respond to item selection changes, use the following API:

The following code locates and selects an item by its ID (SvgImageItem.Id).

csharp
var item1 = svgImageBox1.FindItemById("seat_12");
svgImageBox1.Selection.Add(item1);
vb
Dim item1 = svgImageBox1.FindItemById("seat_12")
svgImageBox1.Selection.Add(item1)

See Also

Selection

SelectionChanging

SelectionChanged

Select(SvgImageItem)

Unselect(SvgImageItem)

Selected

SvgImageBoxOptionsSelection Class

SvgImageBoxOptionsSelection Members

DevExpress.XtraEditors Namespace