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
- CustomError.cs
- ObjectItemCollection.cs
- ColumnBinding.cs
- LinqToSqlWrapper.cs
- BufferedWebEventProvider.cs
- TraceSource.cs
- DropSourceBehavior.cs
- XmlAttributeAttribute.cs
- AuthenticatedStream.cs
- RenderDataDrawingContext.cs
- Vector3DCollectionConverter.cs
- SqlProfileProvider.cs
- DataSet.cs
- ConfigXmlCDataSection.cs
- WebConfigurationFileMap.cs
- AvTraceFormat.cs
- PrintingPermissionAttribute.cs
- XslException.cs
- NativeMethods.cs
- AccessedThroughPropertyAttribute.cs
- OutputCache.cs
- SqlExpander.cs
- CustomCategoryAttribute.cs
- RuleRef.cs
- RegexEditorDialog.cs
- WebPartVerbCollection.cs
- DataContractSet.cs
- AsmxEndpointPickerExtension.cs
- smtpconnection.cs
- ComponentResourceKeyConverter.cs
- FormsAuthenticationEventArgs.cs
- GlyphingCache.cs
- SuppressMergeCheckAttribute.cs
- InputManager.cs
- XPathScanner.cs
- DataRelation.cs
- Unit.cs
- ReadOnlyHierarchicalDataSource.cs
- IdentifierCreationService.cs
- CompilationRelaxations.cs
- CertificateReferenceElement.cs
- WS2007FederationHttpBindingElement.cs
- SafeArrayRankMismatchException.cs
- FileVersionInfo.cs
- TabControlCancelEvent.cs
- DataServiceKeyAttribute.cs
- TypeSemantics.cs
- CalendarDay.cs
- StringInfo.cs
- NativeMethods.cs
- LayoutDump.cs
- AppDomainShutdownMonitor.cs
- SharedPersonalizationStateInfo.cs
- Effect.cs
- WindowsImpersonationContext.cs
- XmlHelper.cs
- COAUTHIDENTITY.cs
- HttpApplicationFactory.cs
- Listen.cs
- UnknownBitmapDecoder.cs
- QuarticEase.cs
- ObjectSpanRewriter.cs
- ReadOnlyCollection.cs
- EntityDataSourceConfigureObjectContext.cs
- ZipIOExtraFieldZip64Element.cs
- ChangeDirector.cs
- CodeGeneratorOptions.cs
- TableChangeProcessor.cs
- httpstaticobjectscollection.cs
- SecUtil.cs
- CustomTypeDescriptor.cs
- ListView.cs
- AttributeUsageAttribute.cs
- EntitySqlException.cs
- InfoCardArgumentException.cs
- DatagridviewDisplayedBandsData.cs
- CustomErrorsSectionWrapper.cs
- DefaultBindingPropertyAttribute.cs
- Int32Converter.cs
- brushes.cs
- PointLight.cs
- XsdDuration.cs
- FilteredReadOnlyMetadataCollection.cs
- Point3DCollection.cs
- IndexedString.cs
- ColorPalette.cs
- CapabilitiesRule.cs
- TdsParserHelperClasses.cs
- ActivatableWorkflowsQueryResult.cs
- RequestUriProcessor.cs
- XPathEmptyIterator.cs
- ContentPresenter.cs
- Privilege.cs
- Identity.cs
- DynamicActivityXamlReader.cs
- TextChange.cs
- PageParserFilter.cs
- ZipIOExtraFieldPaddingElement.cs
- XmlWellformedWriter.cs
- FloaterBaseParaClient.cs