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
- VisualTarget.cs
- FrameDimension.cs
- DataGridItemCollection.cs
- _SpnDictionary.cs
- ExternalException.cs
- ClientRolePrincipal.cs
- Helpers.cs
- PixelFormat.cs
- ToolStripGrip.cs
- WriteFileContext.cs
- CredentialCache.cs
- _SslState.cs
- FlowDocumentPaginator.cs
- XmlException.cs
- CodeTypeConstructor.cs
- XmlTextReader.cs
- EntityParameterCollection.cs
- ConfigurationManagerHelperFactory.cs
- Walker.cs
- AutomationAttributeInfo.cs
- ReaderContextStackData.cs
- NullableFloatMinMaxAggregationOperator.cs
- HttpContext.cs
- NamespaceTable.cs
- EventData.cs
- Point3DAnimationBase.cs
- EncoderNLS.cs
- DocumentApplicationJournalEntry.cs
- ReachDocumentReferenceCollectionSerializer.cs
- COM2ExtendedUITypeEditor.cs
- PassportPrincipal.cs
- Button.cs
- SerializerProvider.cs
- InvalidAsynchronousStateException.cs
- XmlComplianceUtil.cs
- PageThemeBuildProvider.cs
- SqlCommand.cs
- FileUtil.cs
- ISAPIWorkerRequest.cs
- UndoManager.cs
- FixedElement.cs
- ErrorCodes.cs
- Constants.cs
- EventEntry.cs
- TimeoutValidationAttribute.cs
- ListViewPagedDataSource.cs
- DisplayNameAttribute.cs
- GeneralTransform.cs
- SizeConverter.cs
- VisualProxy.cs
- FocusManager.cs
- RemotingConfiguration.cs
- Cursors.cs
- NumericUpDown.cs
- ConcurrentDictionary.cs
- DeferredReference.cs
- ArraySubsetEnumerator.cs
- DataTableReader.cs
- WindowsEditBox.cs
- CompareValidator.cs
- SemanticResolver.cs
- ConsoleKeyInfo.cs
- SetterBase.cs
- UniqueEventHelper.cs
- RadioButtonRenderer.cs
- OleDbErrorCollection.cs
- SecUtil.cs
- ExpressionEditor.cs
- GenericsInstances.cs
- FunctionDefinition.cs
- HttpCookiesSection.cs
- ReturnValue.cs
- Line.cs
- DodSequenceMerge.cs
- ContourSegment.cs
- Html32TextWriter.cs
- DigestComparer.cs
- EmbeddedObject.cs
- ScriptBehaviorDescriptor.cs
- httpapplicationstate.cs
- ComponentDispatcherThread.cs
- SqlTypesSchemaImporter.cs
- COM2EnumConverter.cs
- PageAsyncTaskManager.cs
- DataObjectSettingDataEventArgs.cs
- QueryCorrelationInitializer.cs
- GridEntryCollection.cs
- UnsafeNativeMethods.cs
- LocalizationParserHooks.cs
- StaticFileHandler.cs
- ImageSourceConverter.cs
- CodeTypeOfExpression.cs
- BaseUriHelper.cs
- BrowserCapabilitiesFactoryBase.cs
- WebServiceEnumData.cs
- HttpCookie.cs
- LineSegment.cs
- XmlNullResolver.cs
- ZipIOCentralDirectoryBlock.cs
- InvalidOperationException.cs