Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SQLUtility.cs
- CounterCreationData.cs
- ToolStripItemCollection.cs
- SecurityPolicySection.cs
- WebPartZoneBase.cs
- ComPlusInstanceProvider.cs
- XPathAncestorQuery.cs
- CodeArrayIndexerExpression.cs
- Camera.cs
- EditBehavior.cs
- CodeTypeMemberCollection.cs
- StringArrayConverter.cs
- DoubleLink.cs
- RewritingProcessor.cs
- DynamicEntity.cs
- InlineCollection.cs
- WebPartExportVerb.cs
- SchemaTypeEmitter.cs
- ReaderWriterLock.cs
- ProxyManager.cs
- DataGridViewSortCompareEventArgs.cs
- ContextStack.cs
- DBCommandBuilder.cs
- DispatcherObject.cs
- BuildProvider.cs
- BuiltInPermissionSets.cs
- FormViewModeEventArgs.cs
- InkCanvas.cs
- LabelDesigner.cs
- FieldNameLookup.cs
- BorderSidesEditor.cs
- RegexRunner.cs
- AVElementHelper.cs
- SimpleApplicationHost.cs
- ActivationArguments.cs
- TextBoxBaseDesigner.cs
- ConfigXmlElement.cs
- TrustDriver.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- ContentElement.cs
- PerfCounters.cs
- UnsafeNativeMethods.cs
- ContainerActivationHelper.cs
- StringHandle.cs
- SoapTransportImporter.cs
- ExpressionLink.cs
- ErrorActivity.cs
- PassportAuthenticationEventArgs.cs
- Util.cs
- Variant.cs
- DispatcherHooks.cs
- DataGridViewSortCompareEventArgs.cs
- ProjectionPruner.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- XslTransform.cs
- DefaultAutoFieldGenerator.cs
- RedistVersionInfo.cs
- Point3DCollection.cs
- OutgoingWebRequestContext.cs
- InheritedPropertyDescriptor.cs
- ProfileGroupSettingsCollection.cs
- DateTimeFormat.cs
- ExtendedProperty.cs
- Property.cs
- AbandonedMutexException.cs
- ChtmlTextBoxAdapter.cs
- DetailsViewInsertedEventArgs.cs
- RichTextBox.cs
- Operators.cs
- AutomationPeer.cs
- NTAccount.cs
- ConfigXmlCDataSection.cs
- CodeCastExpression.cs
- DockAndAnchorLayout.cs
- SecurityException.cs
- DefaultAuthorizationContext.cs
- Coordinator.cs
- Psha1DerivedKeyGenerator.cs
- CuspData.cs
- RotateTransform.cs
- PeerTransportSecuritySettings.cs
- DataSourceXmlSerializationAttribute.cs
- counter.cs
- DependencyPropertyAttribute.cs
- ItemCheckedEvent.cs
- Latin1Encoding.cs
- CaseInsensitiveComparer.cs
- ColumnPropertiesGroup.cs
- AnimationLayer.cs
- ItemContainerGenerator.cs
- SettingsPropertyValueCollection.cs
- XmlSignificantWhitespace.cs
- RequestSecurityTokenResponse.cs
- BidPrivateBase.cs
- DrawTreeNodeEventArgs.cs
- SelectionProviderWrapper.cs
- EntityContainerEntitySet.cs
- ClientData.cs
- DependencyObjectPropertyDescriptor.cs
- AuthenticationSchemesHelper.cs