←Select platform

EnableRubberBandSelection Property

Summary

Gets or sets a value that indicates whether rubber band selection is enabled in this control.

Syntax

C#
VB
C++
public bool EnableRubberBandSelection { get; set; } 
Public Property EnableRubberBandSelection As Boolean 
public: 
property bool EnableRubberBandSelection { 
   bool get(); 
   void set (    bool ); 
} 

Property Value

true if rubber band selection is enabled in this control, otherwise; false.

Remarks

When the value of this property is true, the user can draw a rectangle on the control to select multiple items. This rectangle will be filled using the RubberBandFill brush.

Example

C#
VB
using Leadtools.Help; 
using Leadtools.Windows.Controls; 
using Leadtools; 
using Leadtools.Codecs; 
 
public void ImageList_EnableRubberBandSelection(ImageList imageList) 
{ 
   // Show the item text 
   imageList.SelectionMode = SelectionMode.Multiple; 
 
   imageList.EnableRubberBandSelection = true; 
 
   SolidColorBrush fillBrush = new SolidColorBrush(Colors.Red); 
   fillBrush.Opacity = .5; 
 
   imageList.RubberBandFill = fillBrush; 
} 
Imports Leadtools.Windows.Controls 
Imports Leadtools.Codecs 
Imports Leadtools 
 
Public Sub ImageList_EnableRubberBandSelection(ByVal imageList As ImageList) 
   ' Show the item text 
   imageList.SelectionMode = SelectionMode.Multiple 
 
   imageList.EnableRubberBandSelection = True 
 
   Dim fillBrush As SolidColorBrush = New SolidColorBrush(Colors.Red) 
   fillBrush.Opacity = 0.5 
 
   imageList.RubberBandFill = fillBrush 
End Sub 

Requirements

Target Platforms

See Also

Reference

ImageList Class

ImageList Members

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Controls Assembly