Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapImage.cs
- RequestUriProcessor.cs
- Stylesheet.cs
- DBDataPermission.cs
- ButtonRenderer.cs
- StdRegProviderWrapper.cs
- InvalidOperationException.cs
- ComponentCommands.cs
- ArrangedElement.cs
- ExecutionContext.cs
- WebPartConnectionCollection.cs
- Int64AnimationBase.cs
- DbProviderFactories.cs
- PagerSettings.cs
- WebServiceHostFactory.cs
- BitHelper.cs
- WindowAutomationPeer.cs
- IconConverter.cs
- ArraySubsetEnumerator.cs
- PersonalizationProviderCollection.cs
- ExpandableObjectConverter.cs
- wgx_render.cs
- IncrementalReadDecoders.cs
- ReaderOutput.cs
- ResourceReferenceKeyNotFoundException.cs
- GlyphRun.cs
- OrderedEnumerableRowCollection.cs
- ColorMap.cs
- Rotation3DAnimation.cs
- CornerRadius.cs
- QuaternionConverter.cs
- EnumUnknown.cs
- XmlSchemaObject.cs
- X509CertificateStore.cs
- ObjectIDGenerator.cs
- InfoCardSymmetricCrypto.cs
- SymbolTable.cs
- ContentHostHelper.cs
- safesecurityhelperavalon.cs
- CompositeFontParser.cs
- MulticastOption.cs
- RoleGroup.cs
- TreeWalker.cs
- ISFClipboardData.cs
- TogglePattern.cs
- TemplateControlParser.cs
- EdmProperty.cs
- StatusBarDrawItemEvent.cs
- ToolZone.cs
- DataTableMappingCollection.cs
- TextSpanModifier.cs
- Debug.cs
- WindowsEditBox.cs
- DataGridViewElement.cs
- CodeSubDirectoriesCollection.cs
- BindingListCollectionView.cs
- CachingHintValidation.cs
- Int16AnimationUsingKeyFrames.cs
- Nodes.cs
- ContentIterators.cs
- Encoder.cs
- GeometryValueSerializer.cs
- ObservableDictionary.cs
- PromptBuilder.cs
- WriteLine.cs
- Color.cs
- AccessorTable.cs
- RepeatButtonAutomationPeer.cs
- WmpBitmapEncoder.cs
- SqlCharStream.cs
- SessionIDManager.cs
- InfoCardSymmetricAlgorithm.cs
- ContentElement.cs
- RequestCacheEntry.cs
- SvcFileManager.cs
- RuntimeEnvironment.cs
- BindingContext.cs
- TokenBasedSet.cs
- WizardStepBase.cs
- PhonemeEventArgs.cs
- DeploymentSectionCache.cs
- TemplateControlParser.cs
- SelectionPatternIdentifiers.cs
- NativeActivityContext.cs
- ListManagerBindingsCollection.cs
- CopyAttributesAction.cs
- ReachSerializationCacheItems.cs
- Console.cs
- Comparer.cs
- RectAnimationUsingKeyFrames.cs
- HwndHostAutomationPeer.cs
- TransformProviderWrapper.cs
- StringKeyFrameCollection.cs
- RoutedEventHandlerInfo.cs
- CodeTypeReference.cs
- TargetConverter.cs
- Int16AnimationUsingKeyFrames.cs
- TraceSwitch.cs
- CellLabel.cs
- MsmqSecureHashAlgorithm.cs