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
- TextRangeSerialization.cs
- DataGridViewCellPaintingEventArgs.cs
- PrinterResolution.cs
- HttpWebResponse.cs
- PropertyPathConverter.cs
- TimeoutConverter.cs
- X509CertificateValidator.cs
- BehaviorDragDropEventArgs.cs
- COM2ComponentEditor.cs
- HostedTransportConfigurationBase.cs
- TextRangeEditLists.cs
- PassportAuthenticationEventArgs.cs
- ConfigXmlCDataSection.cs
- XmlCharCheckingWriter.cs
- Brushes.cs
- AlphaSortedEnumConverter.cs
- handlecollector.cs
- SpeakInfo.cs
- SmiEventSink.cs
- MenuAdapter.cs
- HttpAsyncResult.cs
- WeakHashtable.cs
- CheckPair.cs
- KeySpline.cs
- EditorZoneAutoFormat.cs
- InstanceHandleConflictException.cs
- ValueConversionAttribute.cs
- StrongNameIdentityPermission.cs
- StringUtil.cs
- ConfigurationValue.cs
- DataTrigger.cs
- Util.cs
- RadioButtonAutomationPeer.cs
- ImageEditor.cs
- Latin1Encoding.cs
- RelationHandler.cs
- ParameterModifier.cs
- ModelItemKeyValuePair.cs
- SafeLibraryHandle.cs
- IProducerConsumerCollection.cs
- IntSecurity.cs
- TypeSemantics.cs
- _SafeNetHandles.cs
- ClusterSafeNativeMethods.cs
- WindowsListView.cs
- DataGridTablesFactory.cs
- OrderedDictionary.cs
- XmlFileEditor.cs
- RestClientProxyHandler.cs
- UndoManager.cs
- VectorAnimationUsingKeyFrames.cs
- XmlPropertyBag.cs
- EntityParameter.cs
- DefaultExpressionVisitor.cs
- URI.cs
- BooleanExpr.cs
- ManagementPath.cs
- InfoCardCryptoHelper.cs
- FixedSOMTableCell.cs
- WebPartEditorApplyVerb.cs
- TextServicesPropertyRanges.cs
- DataPagerFieldCommandEventArgs.cs
- EnumerableWrapperWeakToStrong.cs
- ContextDataSourceContextData.cs
- DataGridViewBand.cs
- SymmetricKey.cs
- CodeDirectionExpression.cs
- LineGeometry.cs
- QilChoice.cs
- HyperLink.cs
- TransactionManager.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- TextPatternIdentifiers.cs
- Timer.cs
- PolicyStatement.cs
- ScriptControlManager.cs
- SafeRightsManagementQueryHandle.cs
- DesignSurfaceCollection.cs
- UidManager.cs
- _BufferOffsetSize.cs
- RecordManager.cs
- SmiXetterAccessMap.cs
- PrimitiveSchema.cs
- ComponentDispatcher.cs
- DirectoryLocalQuery.cs
- sqlnorm.cs
- MetadataWorkspace.cs
- ViewgenGatekeeper.cs
- FixedTextSelectionProcessor.cs
- ProxyElement.cs
- Error.cs
- WebBrowserHelper.cs
- Pen.cs
- sortedlist.cs
- CodeSpit.cs
- DropDownButton.cs
- Ticks.cs
- MimeTypeAttribute.cs
- RenderTargetBitmap.cs
- HotSpot.cs