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
- JoinElimination.cs
- RectAnimation.cs
- SelectionEditingBehavior.cs
- ContextMenuAutomationPeer.cs
- AtlasWeb.Designer.cs
- RuleRef.cs
- AdPostCacheSubstitution.cs
- SafeSecurityHelper.cs
- ItemsChangedEventArgs.cs
- ServiceOperationViewControl.cs
- sqlnorm.cs
- WindowsListViewItemStartMenu.cs
- SmtpAuthenticationManager.cs
- EventLogEntry.cs
- UrlMappingsModule.cs
- GridViewSelectEventArgs.cs
- GridItemCollection.cs
- Translator.cs
- SystemColors.cs
- ErrorProvider.cs
- DockAndAnchorLayout.cs
- FixedPageAutomationPeer.cs
- __Filters.cs
- CodeArrayCreateExpression.cs
- SelectionWordBreaker.cs
- XmlAtomicValue.cs
- PointHitTestResult.cs
- CfgParser.cs
- UDPClient.cs
- ListQueryResults.cs
- DbParameterHelper.cs
- RequiredFieldValidator.cs
- StrongNameKeyPair.cs
- BoundField.cs
- WindowsToolbarItemAsMenuItem.cs
- WebEvents.cs
- AnnotationResourceChangedEventArgs.cs
- DecoderExceptionFallback.cs
- IDQuery.cs
- BitmapPalettes.cs
- WaitHandleCannotBeOpenedException.cs
- ValidationRule.cs
- XPathNavigator.cs
- SqlReorderer.cs
- ArgumentException.cs
- GeneralTransform.cs
- LineGeometry.cs
- StructuredType.cs
- SmtpTransport.cs
- SafeArrayTypeMismatchException.cs
- CodeGen.cs
- FontDifferentiator.cs
- WebPartDeleteVerb.cs
- ConsumerConnectionPoint.cs
- IdentityManager.cs
- MonitoringDescriptionAttribute.cs
- NullableDecimalSumAggregationOperator.cs
- FreezableCollection.cs
- ZoneMembershipCondition.cs
- ResourceDescriptionAttribute.cs
- AuthenticationService.cs
- WebBrowserSiteBase.cs
- OleDbInfoMessageEvent.cs
- GuidTagList.cs
- NotifyParentPropertyAttribute.cs
- UnhandledExceptionEventArgs.cs
- CachedPathData.cs
- assemblycache.cs
- CheckBox.cs
- NamespaceMapping.cs
- Rotation3DAnimationUsingKeyFrames.cs
- AttachedPropertyDescriptor.cs
- CompositionAdorner.cs
- ReadWriteObjectLock.cs
- AdornerPresentationContext.cs
- DesignParameter.cs
- ReflectionTypeLoadException.cs
- ExpressionDumper.cs
- ContentPlaceHolder.cs
- precedingsibling.cs
- OleDbDataAdapter.cs
- ConfigurationManagerHelper.cs
- CodeDOMProvider.cs
- DrawingBrush.cs
- Compiler.cs
- XmlSchemaSimpleTypeUnion.cs
- OracleEncoding.cs
- SharedConnectionInfo.cs
- XmlUtil.cs
- Completion.cs
- LinearGradientBrush.cs
- AllowedAudienceUriElementCollection.cs
- CustomTypeDescriptor.cs
- X509SecurityTokenProvider.cs
- ErrorReporting.cs
- TreeNodeBinding.cs
- SqlDeflator.cs
- OleDbRowUpdatedEvent.cs
- ByteStack.cs
- ArgumentOutOfRangeException.cs