Gets or sets a value that indicates whether rubber band selection is enabled in this control.
[CategoryAttribute("Appearance")][DescriptionAttribute("Margin of each item image.")]public bool EnableRubberBandSelection {get; set;}
<CategoryAttribute("Appearance")><DescriptionAttribute("Margin of each item image.")>Public Property EnableRubberBandSelection As Boolean
[CategoryAttribute("Appearance")][DescriptionAttribute("Margin of each item image.")]public:property bool EnableRubberBandSelection {bool get();void set ( bool );}
true if rubber band selection is enabled in this control, otherwise; false.
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.
Imports Leadtools.Windows.ControlsImports Leadtools.CodecsImports LeadtoolsPublic Sub ImageList_EnableRubberBandSelection(ByVal imageList As ImageList)' Show the item textimageList.SelectionMode = SelectionMode.MultipleimageList.EnableRubberBandSelection = TrueDim fillBrush As SolidColorBrush = New SolidColorBrush(Colors.Red)fillBrush.Opacity = 0.5imageList.RubberBandFill = fillBrushEnd Sub
using Leadtools.Help;using Leadtools.Windows.Controls;using Leadtools;using Leadtools.Codecs;public void ImageList_EnableRubberBandSelection(ImageList imageList){// Show the item textimageList.SelectionMode = SelectionMode.Multiple;imageList.EnableRubberBandSelection = true;SolidColorBrush fillBrush = new SolidColorBrush(Colors.Red);fillBrush.Opacity = .5;imageList.RubberBandFill = fillBrush;}
<Windowxmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"xmlns:Leadtools_Windows_Controls="clr-namespace:Leadtools.Windows.Controls;assembly=Leadtools.Windows.Controls"Height="600" Width="800" Title="EnableRubberBandSelection Sample"><DockPanel><Leadtools_Windows_Controls:ImageListName="theImageList"DockPanel.Dock= "Bottom"EnableRubberBandSelection="True"HorizontalAlignment="Center" VerticalAlignment="Bottom" ItemBorderBrush="Red" ItemSelectedForeground="Blue" ItemSelectedBackground="Yellow"><Leadtools_Windows_Controls:ImageList.RubberBandFill><SolidColorBrush Color="Red" Opacity=".5"/></Leadtools_Windows_Controls:ImageList.RubberBandFill><Leadtools_Windows_Controls:ImageListItem Source="file:///c:\users\Public\Documents\LEADTOOLS Images\cannon.jpg" Text="slave.jpg"/><Leadtools_Windows_Controls:ImageListItem Source="file:///c:\users\Public\Documents\LEADTOOLS Images\clean.tif" Text="clean.tif"/></Leadtools_Windows_Controls:ImageList></DockPanel></Window>
|
Products |
Support |
Feedback: EnableRubberBandSelection Property - Leadtools.Windows.Controls |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.