Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ListViewItemSelectionChangedEvent.cs / 1305376 / ListViewItemSelectionChangedEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System.ComponentModel; ////// /// The event class that is created when the selection state of a ListViewItem is changed. /// public class ListViewItemSelectionChangedEventArgs : EventArgs { private ListViewItem item; private int itemIndex; private bool isSelected; ////// /// Constructs a ListViewItemSelectionChangedEventArgs object. /// public ListViewItemSelectionChangedEventArgs(ListViewItem item, int itemIndex, bool isSelected) { this.item = item; this.itemIndex = itemIndex; this.isSelected = isSelected; } ////// /// Return true if the item is selected /// public bool IsSelected { get { return this.isSelected; } } ////// /// The list view item whose selection changed /// public ListViewItem Item { get { return this.item; } } ////// /// The list view item's index /// public int ItemIndex { get { return this.itemIndex; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms { using System.ComponentModel; ////// /// The event class that is created when the selection state of a ListViewItem is changed. /// public class ListViewItemSelectionChangedEventArgs : EventArgs { private ListViewItem item; private int itemIndex; private bool isSelected; ////// /// Constructs a ListViewItemSelectionChangedEventArgs object. /// public ListViewItemSelectionChangedEventArgs(ListViewItem item, int itemIndex, bool isSelected) { this.item = item; this.itemIndex = itemIndex; this.isSelected = isSelected; } ////// /// Return true if the item is selected /// public bool IsSelected { get { return this.isSelected; } } ////// /// The list view item whose selection changed /// public ListViewItem Item { get { return this.item; } } ////// /// The list view item's index /// public int ItemIndex { get { return this.itemIndex; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourcesGenerator.cs
- ISFClipboardData.cs
- SRef.cs
- VarRemapper.cs
- TextSchema.cs
- ArrayHelper.cs
- Point3DConverter.cs
- AssemblyNameProxy.cs
- Int64.cs
- PropertySegmentSerializationProvider.cs
- StatusStrip.cs
- SourceFileInfo.cs
- BevelBitmapEffect.cs
- WebPartPersonalization.cs
- ExternalDataExchangeService.cs
- CodeDirectiveCollection.cs
- ISFClipboardData.cs
- ProtectedConfiguration.cs
- DashStyle.cs
- SiteMapHierarchicalDataSourceView.cs
- WebPartActionVerb.cs
- ControlAdapter.cs
- ImageCodecInfo.cs
- MetadataCacheItem.cs
- EmbeddedObject.cs
- DiagnosticsElement.cs
- WebServiceHandlerFactory.cs
- WmpBitmapEncoder.cs
- DocumentXPathNavigator.cs
- IdentitySection.cs
- TrackingLocation.cs
- XmlSchemaElement.cs
- LinqDataSourceSelectEventArgs.cs
- GeneralTransformGroup.cs
- ChildTable.cs
- XmlHierarchicalEnumerable.cs
- _NegoStream.cs
- XmlFormatExtensionPrefixAttribute.cs
- FtpWebRequest.cs
- SoapServerMethod.cs
- SafeHandles.cs
- SqlCacheDependencyDatabaseCollection.cs
- DataList.cs
- EqualityComparer.cs
- XmlILOptimizerVisitor.cs
- SqlTypesSchemaImporter.cs
- TaiwanCalendar.cs
- WmpBitmapDecoder.cs
- TdsParserSafeHandles.cs
- ToolstripProfessionalRenderer.cs
- X500Name.cs
- AppDomain.cs
- RootBrowserWindowAutomationPeer.cs
- Mappings.cs
- RepeaterItemCollection.cs
- TransportReplyChannelAcceptor.cs
- EventBuilder.cs
- XmlUtil.cs
- ArrangedElement.cs
- TextTreeInsertElementUndoUnit.cs
- HtmlHead.cs
- OletxResourceManager.cs
- WinFormsSecurity.cs
- TransportBindingElement.cs
- WebPartDisplayMode.cs
- OletxDependentTransaction.cs
- Set.cs
- DoubleLinkList.cs
- ColumnWidthChangingEvent.cs
- MulticastIPAddressInformationCollection.cs
- XPathDocumentBuilder.cs
- EncryptedData.cs
- ButtonColumn.cs
- TrackingDataItem.cs
- MulticastNotSupportedException.cs
- ButtonBaseDesigner.cs
- Table.cs
- panel.cs
- QuaternionIndependentAnimationStorage.cs
- XMLSyntaxException.cs
- IconHelper.cs
- DataGridRelationshipRow.cs
- GraphicsContext.cs
- DictionaryManager.cs
- WsatEtwTraceListener.cs
- AxisAngleRotation3D.cs
- ZipArchive.cs
- CodeStatement.cs
- MetadataFile.cs
- Ref.cs
- SystemWebExtensionsSectionGroup.cs
- ConfigurationSectionCollection.cs
- WebEventTraceProvider.cs
- IntellisenseTextBox.cs
- handlecollector.cs
- XmlWrappingReader.cs
- TaiwanLunisolarCalendar.cs
- TreeNodeConverter.cs
- PersianCalendar.cs
- KeyFrames.cs