Indicates whether the item is in a selected state.
public bool IsSelected { get; set; }
Public Property IsSelected() As Boolean
Get
Set
public:
property bool IsSelected
{
bool get()
void set(bool value)
}
true if this item is in a selected state, otherwise; false. Default value is false.
Selected items (the value of IsSelected is true) may be rendered differently than non-selected items as described in Image Viewer Appearance.
Select and GetSelected can be used to select multiple items at once and get all the selected items in the viewer respectively.
ImageViewerSelectItemsInteractiveMode can be used to select items in the viewer using mouse, touch or keyboard in a manner similar to an "image list" application such as Windows Explorer in Thumbnail View.
For more information, refer Image Viewer Items.
using Leadtools;
using Leadtools.Controls;
using Leadtools.Codecs;
using Leadtools.Drawing;
using LeadtoolsExamples.Common;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Color;
_imageViewer.BeginUpdate();
_imageViewer.Items[0].IsSelected = !_imageViewer.Items[0].IsSelected;
MessageBox.Show(string.Format("_imageViewer.Items[0].IsSelected = {0}", _imageViewer.Items[0].IsSelected));
_imageViewer.EndUpdate();
Imports Leadtools
Imports Leadtools.Controls
Imports Leadtools.Codecs
Imports Leadtools.Drawing
Imports Leadtools.ImageProcessing
Imports Leadtools.ImageProcessing.Color
Imports LeadtoolsControlsExamples.LeadtoolsExamples.Common
_imageViewer.BeginUpdate()
_imageViewer.Items(0).IsSelected = Not _imageViewer.Items(0).IsSelected
MessageBox.Show(String.Format("_imageViewer.Items[0].IsSelected = {0}", _imageViewer.Items(0).IsSelected))
_imageViewer.EndUpdate()
Products |
Support |
Feedback: IsSelected Property (ImageViewerItem) - Leadtools.Controls |
Introduction |
Help Version 19.0.2017.6.20
|
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.