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
- ReferencedAssembly.cs
- BoolLiteral.cs
- DrawingBrush.cs
- EditorZone.cs
- UnsafeNativeMethodsCLR.cs
- GeneratedContractType.cs
- EnvelopedPkcs7.cs
- MD5CryptoServiceProvider.cs
- TextParagraph.cs
- IpcChannel.cs
- SamlAction.cs
- ProfilePropertyMetadata.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ConstructorBuilder.cs
- MenuAdapter.cs
- LayoutEngine.cs
- LinqDataSourceDeleteEventArgs.cs
- ContentDisposition.cs
- PriorityQueue.cs
- NumericUpDown.cs
- HtmlInputFile.cs
- TextParagraph.cs
- CodeNamespaceImport.cs
- COM2PropertyPageUITypeConverter.cs
- TextServicesCompartmentContext.cs
- HuffModule.cs
- HttpListenerElement.cs
- DesignerHelpers.cs
- BinHexDecoder.cs
- CodeSnippetStatement.cs
- EpmContentDeSerializer.cs
- BaseParser.cs
- WebResourceAttribute.cs
- PersianCalendar.cs
- XpsResource.cs
- XmlSchemaValidationException.cs
- CommentGlyph.cs
- ping.cs
- Vars.cs
- ApplicationServicesHostFactory.cs
- ChooseAction.cs
- TextElement.cs
- MsmqTransportBindingElement.cs
- CodeIdentifiers.cs
- OdbcReferenceCollection.cs
- AsyncCompletedEventArgs.cs
- StreamGeometry.cs
- XPathAxisIterator.cs
- OleAutBinder.cs
- ElapsedEventArgs.cs
- AdjustableArrowCap.cs
- SortQuery.cs
- HttpWebRequestElement.cs
- WinEventQueueItem.cs
- BitStack.cs
- DispatcherProcessingDisabled.cs
- XmlSchemaExternal.cs
- ExecutionProperties.cs
- GestureRecognitionResult.cs
- ListSourceHelper.cs
- DesignerActionHeaderItem.cs
- Size.cs
- TableStyle.cs
- DllNotFoundException.cs
- _ProxyChain.cs
- MetadataFile.cs
- TextBoxLine.cs
- IgnoreFlushAndCloseStream.cs
- RecipientInfo.cs
- WsdlImporterElementCollection.cs
- SurrogateEncoder.cs
- QilFunction.cs
- ServiceOperationViewControl.cs
- AutomationAttributeInfo.cs
- QueryableDataSourceEditData.cs
- COM2PictureConverter.cs
- AnimationClockResource.cs
- Propagator.cs
- BindableAttribute.cs
- ETagAttribute.cs
- FunctionUpdateCommand.cs
- BamlBinaryReader.cs
- WmpBitmapEncoder.cs
- PreProcessor.cs
- ToolStripStatusLabel.cs
- TrustLevel.cs
- StreamWriter.cs
- Task.cs
- Html32TextWriter.cs
- ControlCollection.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- HttpClientCredentialType.cs
- WindowsFont.cs
- PngBitmapEncoder.cs
- HttpCacheVaryByContentEncodings.cs
- WindowsListViewGroup.cs
- XmlSchemaAny.cs
- StylusPointPropertyInfoDefaults.cs
- ImageSource.cs
- XamlSerializerUtil.cs