IsSelected Property (original) (raw)

Summary

Indicates whether the item is in a selected state.

Syntax

public bool IsSelected { get; set; } 

public: property bool IsSelected { bool get() void set(bool value) }

Property Value

true if this item is in a selected state, otherwise; false. Default value is false.

Example

using Leadtools; using Leadtools.Controls; using Leadtools.Codecs; using Leadtools.Drawing; using Leadtools.ImageProcessing; using Leadtools.ImageProcessing.Color; using Leadtools.Svg; _imageViewer.BeginUpdate(); _imageViewer.Items[0].IsSelected = !_imageViewer.Items[0].IsSelected; Debug.WriteLine(string.Format("_imageViewer.Items[0].IsSelected = {0}", _imageViewer.Items[0].IsSelected)); _imageViewer.EndUpdate();