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
- ChannelManager.cs
- InkPresenterAutomationPeer.cs
- FastEncoder.cs
- RoleBoolean.cs
- LayoutEngine.cs
- BoolExpr.cs
- PropertyChange.cs
- XmlConvert.cs
- WrappedReader.cs
- DataGridViewToolTip.cs
- CqlParser.cs
- SoapMessage.cs
- RectConverter.cs
- IndexedGlyphRun.cs
- DesignTimeVisibleAttribute.cs
- GroupBox.cs
- WindowsStartMenu.cs
- ClientUrlResolverWrapper.cs
- CheckBox.cs
- Brush.cs
- FileDialogCustomPlacesCollection.cs
- DataGrid.cs
- EpmSourcePathSegment.cs
- XPathDescendantIterator.cs
- X509SecurityToken.cs
- HttpRequestTraceRecord.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- StylusPointPropertyInfo.cs
- FormsAuthenticationTicket.cs
- PaperSize.cs
- XsdDuration.cs
- VirtualPathUtility.cs
- DataGridViewLinkCell.cs
- storagemappingitemcollection.viewdictionary.cs
- RadialGradientBrush.cs
- AudioDeviceOut.cs
- GlyphingCache.cs
- MsmqIntegrationSecurityMode.cs
- exports.cs
- CompiledAction.cs
- MatrixKeyFrameCollection.cs
- SurrogateChar.cs
- Point3DAnimation.cs
- SafeFileMappingHandle.cs
- XPathArrayIterator.cs
- ProviderException.cs
- ApplyImportsAction.cs
- XamlSerializerUtil.cs
- WorkflowRuntimeServiceElementCollection.cs
- SwitchAttribute.cs
- ResourceReferenceExpression.cs
- AuthenticatedStream.cs
- DefaultCompensation.cs
- BoolExpressionVisitors.cs
- XmlSerializerNamespaces.cs
- FormatterServicesNoSerializableCheck.cs
- Config.cs
- TextCollapsingProperties.cs
- DigitalSignature.cs
- Debugger.cs
- TransactionState.cs
- JapaneseCalendar.cs
- safemediahandle.cs
- MatrixValueSerializer.cs
- RegexCapture.cs
- ColorMatrix.cs
- CaseInsensitiveComparer.cs
- TcpTransportBindingElement.cs
- SrgsRuleRef.cs
- InvalidPrinterException.cs
- MobilePage.cs
- GeneralTransformCollection.cs
- ValueOfAction.cs
- TransactionChannel.cs
- SafeCryptHandles.cs
- DataObjectSettingDataEventArgs.cs
- ItemDragEvent.cs
- ConstantCheck.cs
- ConfigurationElement.cs
- ActivityCollectionMarkupSerializer.cs
- PointCollection.cs
- Int32Collection.cs
- Columns.cs
- AudioSignalProblemOccurredEventArgs.cs
- DynamicFilterExpression.cs
- ResourceDescriptionAttribute.cs
- TreeViewBindingsEditorForm.cs
- ScrollEventArgs.cs
- RuntimeConfigLKG.cs
- XPathAncestorIterator.cs
- ProxyHwnd.cs
- HttpCachePolicy.cs
- BuildTopDownAttribute.cs
- XPathItem.cs
- MonikerSyntaxException.cs
- GridViewAutoFormat.cs
- HyperLinkField.cs
- DataConnectionHelper.cs
- ToolStripScrollButton.cs
- QilGeneratorEnv.cs