Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ListViewItemSelectionChangedEvent.cs / 1305376 / 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
- CustomErrorsSection.cs
- HostedImpersonationContext.cs
- ReadOnlyTernaryTree.cs
- TextDecorationCollectionConverter.cs
- DrawListViewColumnHeaderEventArgs.cs
- HttpProfileBase.cs
- ValueTable.cs
- LineServicesCallbacks.cs
- MailFileEditor.cs
- TraceRecord.cs
- _FtpControlStream.cs
- PrivilegedConfigurationManager.cs
- MonitorWrapper.cs
- ProfileSection.cs
- ExceptionHandlersDesigner.cs
- AbsoluteQuery.cs
- ProjectionPruner.cs
- TextBox.cs
- BaseCodeDomTreeGenerator.cs
- documentation.cs
- ResourcesBuildProvider.cs
- SelectionListDesigner.cs
- UrlMappingsSection.cs
- ScopedKnownTypes.cs
- DecoderFallback.cs
- SeekableReadStream.cs
- DecoderFallback.cs
- WpfPayload.cs
- DesignerProperties.cs
- FormattedTextSymbols.cs
- QuaternionAnimation.cs
- ImageBrush.cs
- CellPartitioner.cs
- mactripleDES.cs
- WindowsSpinner.cs
- WebRequestModuleElementCollection.cs
- ExtentKey.cs
- XmlWellformedWriter.cs
- HtmlButton.cs
- OpacityConverter.cs
- PaperSource.cs
- DataTableExtensions.cs
- SecurityAttributeGenerationHelper.cs
- AppDomainUnloadedException.cs
- DateTimeValueSerializerContext.cs
- ReplyChannel.cs
- Int32AnimationUsingKeyFrames.cs
- ScrollItemPattern.cs
- IIS7WorkerRequest.cs
- UpdateException.cs
- OpenFileDialog.cs
- TableColumn.cs
- ConfigurationSectionHelper.cs
- QilLiteral.cs
- CompilationRelaxations.cs
- Model3DGroup.cs
- GridSplitterAutomationPeer.cs
- ResXResourceWriter.cs
- ZipIOFileItemStream.cs
- StyleSelector.cs
- figurelength.cs
- TablePatternIdentifiers.cs
- CompModSwitches.cs
- XmlNamespaceDeclarationsAttribute.cs
- _Events.cs
- MissingMethodException.cs
- DataGridItemEventArgs.cs
- DatagridviewDisplayedBandsData.cs
- Transform.cs
- SettingsProperty.cs
- Internal.cs
- ViewDesigner.cs
- _ListenerAsyncResult.cs
- Double.cs
- DotExpr.cs
- CertificateManager.cs
- ScalarRestriction.cs
- PageThemeCodeDomTreeGenerator.cs
- _SslSessionsCache.cs
- TreeChangeInfo.cs
- WindowsSecurityToken.cs
- unsafenativemethodsother.cs
- ComboBoxRenderer.cs
- ResXResourceSet.cs
- WebZone.cs
- Int32KeyFrameCollection.cs
- AccessibleObject.cs
- DataException.cs
- ReaderContextStackData.cs
- IsolatedStorageException.cs
- WebPartMinimizeVerb.cs
- File.cs
- DataGridViewCellCancelEventArgs.cs
- ProgressiveCrcCalculatingStream.cs
- CollectionViewSource.cs
- RegistrySecurity.cs
- mactripleDES.cs
- SafeUserTokenHandle.cs
- XmlSchemaSimpleContentExtension.cs
- Substitution.cs