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
- TrackingMemoryStream.cs
- MultiAsyncResult.cs
- RemoteWebConfigurationHostStream.cs
- XsltLibrary.cs
- Registry.cs
- XmlDataFileEditor.cs
- MarshalDirectiveException.cs
- DivideByZeroException.cs
- FullTextState.cs
- CompilerInfo.cs
- MsmqMessageSerializationFormat.cs
- Query.cs
- ProgressiveCrcCalculatingStream.cs
- XmlArrayAttribute.cs
- TextRangeBase.cs
- CqlGenerator.cs
- DataRowChangeEvent.cs
- TreeViewBindingsEditor.cs
- ConnectionManager.cs
- EncoderReplacementFallback.cs
- PropertyEmitterBase.cs
- HtmlMobileTextWriter.cs
- Config.cs
- StylusOverProperty.cs
- ConnectionPoint.cs
- DPTypeDescriptorContext.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- TreeNodeCollection.cs
- XmlSchemaSimpleContentRestriction.cs
- PerCallInstanceContextProvider.cs
- Calendar.cs
- TriggerCollection.cs
- User.cs
- SafeCryptContextHandle.cs
- Dump.cs
- XsdBuildProvider.cs
- XmlSchemaIdentityConstraint.cs
- ListBindableAttribute.cs
- ACL.cs
- HostSecurityManager.cs
- Win32Native.cs
- GeneralTransform.cs
- DataConnectionHelper.cs
- SendingRequestEventArgs.cs
- InputScopeConverter.cs
- XmlBinaryReader.cs
- EntityClassGenerator.cs
- RenderData.cs
- FamilyTypefaceCollection.cs
- OutputChannel.cs
- Completion.cs
- Rights.cs
- SessionIDManager.cs
- ExpressionVisitorHelpers.cs
- RenderDataDrawingContext.cs
- ResourceExpressionEditor.cs
- Token.cs
- DesignOnlyAttribute.cs
- XmlArrayItemAttribute.cs
- DataColumnMappingCollection.cs
- TargetControlTypeAttribute.cs
- WindowsIdentity.cs
- AudioException.cs
- OperatorExpressions.cs
- SymmetricKeyWrap.cs
- WsdlBuildProvider.cs
- GridViewColumnCollection.cs
- WorkflowApplicationIdleEventArgs.cs
- CodeCatchClause.cs
- TypeNameParser.cs
- DataObjectPastingEventArgs.cs
- StorageScalarPropertyMapping.cs
- UIPermission.cs
- DocumentPaginator.cs
- FlowDocument.cs
- SimplePropertyEntry.cs
- SqlBuffer.cs
- MulticastIPAddressInformationCollection.cs
- ButtonBase.cs
- FlowStep.cs
- XmlSchemaException.cs
- CodeExporter.cs
- InlineObject.cs
- _ListenerAsyncResult.cs
- SessionState.cs
- LineGeometry.cs
- GenericWebPart.cs
- InitializingNewItemEventArgs.cs
- InternalBufferOverflowException.cs
- UnsafeNativeMethodsPenimc.cs
- TableItemPattern.cs
- CompositionTarget.cs
- ImageList.cs
- PropertyCollection.cs
- FirstMatchCodeGroup.cs
- DtrList.cs
- XmlDeclaration.cs
- LinqDataSourceContextEventArgs.cs
- RepeaterItem.cs
- UidPropertyAttribute.cs