Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / ListViewItemSelectionChangedEvent.cs / 1 / 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
- PeerServiceMessageContracts.cs
- XmlSubtreeReader.cs
- RegexGroupCollection.cs
- DrawingDrawingContext.cs
- MemberMemberBinding.cs
- ColumnCollection.cs
- DrawingGroupDrawingContext.cs
- EntityProviderFactory.cs
- FontStyles.cs
- HwndHost.cs
- Int32Animation.cs
- TextBox.cs
- SystemFonts.cs
- SystemFonts.cs
- HandleTable.cs
- DelegatedStream.cs
- CallContext.cs
- MarkupCompiler.cs
- BuildProvider.cs
- Point.cs
- ReferenceConverter.cs
- Lookup.cs
- TreeNodeBindingCollection.cs
- HttpMethodConstraint.cs
- ProtocolsConfigurationHandler.cs
- COM2FontConverter.cs
- PropertyCollection.cs
- RequestUriProcessor.cs
- CompilerScope.cs
- DownloadProgressEventArgs.cs
- UpdateManifestForBrowserApplication.cs
- EntityDataSourceDesigner.cs
- SmiEventStream.cs
- RepeaterItemCollection.cs
- BroadcastEventHelper.cs
- Rotation3DAnimationUsingKeyFrames.cs
- Type.cs
- Line.cs
- SecurityRuntime.cs
- SafeNativeMethods.cs
- EnumDataContract.cs
- WebConfigurationFileMap.cs
- SessionPageStateSection.cs
- UnaryNode.cs
- SignatureResourcePool.cs
- SchemaInfo.cs
- IsolatedStoragePermission.cs
- ResourceWriter.cs
- TypeSemantics.cs
- UIElementParagraph.cs
- NonVisualControlAttribute.cs
- CollectionsUtil.cs
- DictionaryChange.cs
- CloseSequenceResponse.cs
- FtpRequestCacheValidator.cs
- SafeFileHandle.cs
- SqlComparer.cs
- uribuilder.cs
- ContextMenuService.cs
- BaseWebProxyFinder.cs
- LineGeometry.cs
- CorrelationManager.cs
- ContextMenu.cs
- MasterPageParser.cs
- TypedRowHandler.cs
- EastAsianLunisolarCalendar.cs
- DoubleAnimation.cs
- WindowsStartMenu.cs
- ButtonAutomationPeer.cs
- ToolboxItemCollection.cs
- NetPeerTcpBindingCollectionElement.cs
- TemplateXamlParser.cs
- ReadingWritingEntityEventArgs.cs
- OdbcReferenceCollection.cs
- XmlHierarchyData.cs
- OleDbRowUpdatingEvent.cs
- SqlDataSourceEnumerator.cs
- StrokeNode.cs
- Authorization.cs
- XPathNodeIterator.cs
- SecurityAlgorithmSuite.cs
- BinaryObjectWriter.cs
- XPathParser.cs
- DbConnectionPoolCounters.cs
- CultureSpecificStringDictionary.cs
- FileChangeNotifier.cs
- Matrix3DConverter.cs
- CodeNamespaceImport.cs
- DataMemberFieldConverter.cs
- ImmutableObjectAttribute.cs
- TypeInfo.cs
- XmlSchemaSimpleTypeUnion.cs
- ObjectView.cs
- querybuilder.cs
- DBCSCodePageEncoding.cs
- EventArgs.cs
- StatusBarItem.cs
- LoginView.cs
- ListViewGroupConverter.cs
- PreloadedPackages.cs