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
- SafeCancelMibChangeNotify.cs
- xml.cs
- CommentEmitter.cs
- WindowPatternIdentifiers.cs
- FormatSettings.cs
- PasswordRecovery.cs
- RegistrationServices.cs
- ColumnWidthChangingEvent.cs
- TabItemWrapperAutomationPeer.cs
- SmiXetterAccessMap.cs
- QueryCursorEventArgs.cs
- XmlSchemaCompilationSettings.cs
- AppDomainProtocolHandler.cs
- ProviderCollection.cs
- FunctionCommandText.cs
- OdbcErrorCollection.cs
- PasswordTextNavigator.cs
- AssemblyUtil.cs
- AdapterUtil.cs
- CellIdBoolean.cs
- UnknownBitmapEncoder.cs
- SmtpDigestAuthenticationModule.cs
- Annotation.cs
- SystemColors.cs
- MembershipPasswordException.cs
- DelegatingTypeDescriptionProvider.cs
- UnsafeNativeMethods.cs
- PropertyValueUIItem.cs
- SqlUserDefinedAggregateAttribute.cs
- ListViewSelectEventArgs.cs
- ResourceAssociationSetEnd.cs
- InternalBase.cs
- GridViewColumnCollection.cs
- EmbeddedMailObjectsCollection.cs
- TabItemAutomationPeer.cs
- XmlCollation.cs
- FacetValues.cs
- ApplicationBuildProvider.cs
- DataRelation.cs
- XhtmlConformanceSection.cs
- PersianCalendar.cs
- XhtmlStyleClass.cs
- GreenMethods.cs
- Publisher.cs
- SchemaImporter.cs
- TreeNodeBindingDepthConverter.cs
- CompilationSection.cs
- ProxyWebPartConnectionCollection.cs
- XmlComplianceUtil.cs
- COSERVERINFO.cs
- RangeBaseAutomationPeer.cs
- DelegatingConfigHost.cs
- XmlNavigatorFilter.cs
- TokenBasedSetEnumerator.cs
- ToolStripItemEventArgs.cs
- DeploymentExceptionMapper.cs
- HoistedLocals.cs
- Annotation.cs
- _ContextAwareResult.cs
- LocatorManager.cs
- TemplateColumn.cs
- _SafeNetHandles.cs
- LineUtil.cs
- KeysConverter.cs
- AxHost.cs
- SafeCancelMibChangeNotify.cs
- AnnotationDocumentPaginator.cs
- Calendar.cs
- WebBrowsableAttribute.cs
- RadioButtonAutomationPeer.cs
- TabControl.cs
- ADMembershipUser.cs
- SapiInterop.cs
- ManagementEventWatcher.cs
- SqlDeflator.cs
- CodeArgumentReferenceExpression.cs
- TypeConverter.cs
- DomNameTable.cs
- AsyncOperation.cs
- CacheMemory.cs
- UnsafeCollabNativeMethods.cs
- WebScriptMetadataInstanceContextProvider.cs
- SQLBytes.cs
- TraceData.cs
- IPHostEntry.cs
- SourceElementsCollection.cs
- SafeRightsManagementEnvironmentHandle.cs
- InputLanguageCollection.cs
- PathTooLongException.cs
- UseAttributeSetsAction.cs
- TargetInvocationException.cs
- RtfControlWordInfo.cs
- SetIterators.cs
- TemplateXamlParser.cs
- FilterableAttribute.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ByteStorage.cs
- GuidelineSet.cs
- DataKeyCollection.cs
- AccessViolationException.cs