Gets or sets a value indicating whether the selection range is selecting or unselecting items.
Property Value
Selection if the selection range is selecting items;
Unselection if the items are being unselected. By default,
Selection.
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 );
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