Xceed Toolkit Plus for WPF v4.6 Documentation
SelectionType Property
Example 


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.ListBox Namespace > SelectionRange Class : SelectionType Property
Gets or sets a value indicating whether the selection range is selecting or unselecting items.
Syntax
'Declaration
 
Public Property SelectionType As SelectionType
'Usage
 
Dim instance As SelectionRange
Dim value As SelectionType
 
instance.SelectionType = value
 
value = instance.SelectionType
public SelectionType SelectionType {get; set;}

Property Value

Selection if the selection range is selecting items; Unselection if the items are being unselected. By default, Selection.
Example
For more information and examples on selecting data, refer to the Selecting Data topic.
Dim range As New SelectionRange( New SortDescription() { New SortDescription( "ShipCountry", ListSortDirection.Ascending ) }, Nothing, Nothing ) 

range.SelectionType = SelectionType.Unselection
range.StartRangeInfos.Add( "ShipCountry", "Canada" )
range.EndRangeInfos.Add( "ShipCountry", "Canada" )

Me.sllbListBox.SelectedRanges.Add( range )
SelectionRange range = new SelectionRange( new SortDescription[] { new SortDescription( "ShipCountry", ListSortDirection.Ascending ) }, null, null );

range.SelectionType = SelectionType.Unselection;
range.StartRangeInfos.Add( "ShipCountry", "Canada" );
range.EndRangeInfos.Add( "ShipCountry", "Canada" );

this.sllbListBox.SelectedRanges.Add( range );
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SelectionRange Class
SelectionRange Members