Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- VoiceChangeEventArgs.cs
- BaseTemplateParser.cs
- JsonDataContract.cs
- CacheChildrenQuery.cs
- LoginCancelEventArgs.cs
- OracleConnectionFactory.cs
- GridViewColumnCollection.cs
- NamedPipeProcessProtocolHandler.cs
- SwitchExpression.cs
- WindowsAuthenticationEventArgs.cs
- CertificateReferenceElement.cs
- OraclePermissionAttribute.cs
- NetSectionGroup.cs
- TaskFactory.cs
- NativeRightsManagementAPIsStructures.cs
- LinqDataSourceValidationException.cs
- PersianCalendar.cs
- VariantWrapper.cs
- Mapping.cs
- HeaderedContentControl.cs
- StorageComplexTypeMapping.cs
- XmlJsonWriter.cs
- IgnoreFileBuildProvider.cs
- DocumentPageViewAutomationPeer.cs
- BufferModeSettings.cs
- SecurityElement.cs
- MdiWindowListItemConverter.cs
- FixedFindEngine.cs
- Page.cs
- XmlKeywords.cs
- SmtpFailedRecipientsException.cs
- ObjectTypeMapping.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ProfileGroupSettingsCollection.cs
- AutomationEventArgs.cs
- InvokeMethod.cs
- SQLByteStorage.cs
- IdnElement.cs
- DataServiceExpressionVisitor.cs
- ResourceReferenceExpressionConverter.cs
- FilterEventArgs.cs
- ZoneMembershipCondition.cs
- ListenerElementsCollection.cs
- StructuralType.cs
- Dynamic.cs
- CodeEventReferenceExpression.cs
- ToolStripPanelRow.cs
- CodeEventReferenceExpression.cs
- MaskInputRejectedEventArgs.cs
- FieldToken.cs
- ItemPager.cs
- Slider.cs
- ThicknessAnimation.cs
- ForeignKeyConstraint.cs
- InkCanvasAutomationPeer.cs
- HwndSourceParameters.cs
- CommentEmitter.cs
- FilterEventArgs.cs
- ProgressBar.cs
- TreeSet.cs
- PropertyRef.cs
- SolidColorBrush.cs
- SerTrace.cs
- Soap.cs
- DecimalConverter.cs
- FormsAuthenticationTicket.cs
- RuntimeIdentifierPropertyAttribute.cs
- PackageDigitalSignature.cs
- ProxyManager.cs
- SQLSingleStorage.cs
- PermissionToken.cs
- VarRefManager.cs
- ImageSourceValueSerializer.cs
- OracleCommandBuilder.cs
- DocumentPageView.cs
- EmbeddedObject.cs
- TrackingMemoryStreamFactory.cs
- IdentityReference.cs
- CuspData.cs
- RTLAwareMessageBox.cs
- DataGridViewRowPostPaintEventArgs.cs
- XPathMultyIterator.cs
- ReadOnlyNameValueCollection.cs
- CallbackValidator.cs
- MarginCollapsingState.cs
- View.cs
- ConnectionString.cs
- DesignerObject.cs
- MeshGeometry3D.cs
- BoundColumn.cs
- ScriptManager.cs
- ExtensionMethods.cs
- SlipBehavior.cs
- SimpleApplicationHost.cs
- mediapermission.cs
- ListViewItem.cs
- PeerCollaboration.cs
- RecommendedAsConfigurableAttribute.cs
- ChannelHandler.cs
- DbDataSourceEnumerator.cs