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
- HttpSessionStateBase.cs
- DrawingGroupDrawingContext.cs
- SourceInterpreter.cs
- QueryOptionExpression.cs
- DataTable.cs
- ProxyWebPartConnectionCollection.cs
- HebrewNumber.cs
- StateDesigner.Helpers.cs
- Char.cs
- PropertyBuilder.cs
- SessionParameter.cs
- DesignerVerb.cs
- DateTimeFormatInfoScanner.cs
- DesignerInterfaces.cs
- ListBindingConverter.cs
- HelpInfo.cs
- ServiceHttpHandlerFactory.cs
- GeneralTransform2DTo3D.cs
- DatePickerDateValidationErrorEventArgs.cs
- Container.cs
- OperationAbortedException.cs
- ToolZone.cs
- ConsumerConnectionPoint.cs
- BuildManagerHost.cs
- DragEvent.cs
- WsdlBuildProvider.cs
- NavigationWindow.cs
- DatagridviewDisplayedBandsData.cs
- HttpModuleCollection.cs
- PasswordTextNavigator.cs
- RsaSecurityTokenAuthenticator.cs
- AxHost.cs
- TlsSspiNegotiation.cs
- Evidence.cs
- Rect.cs
- Matrix3D.cs
- _LocalDataStore.cs
- SignatureResourceHelper.cs
- UdpSocket.cs
- FlowDocument.cs
- AutoGeneratedField.cs
- MemberRelationshipService.cs
- HttpRequestCacheValidator.cs
- ClientUtils.cs
- LoginNameDesigner.cs
- CircleHotSpot.cs
- SafeNativeMethodsOther.cs
- CompModHelpers.cs
- CachedPathData.cs
- DATA_BLOB.cs
- RegexCode.cs
- DesignerOptionService.cs
- Axis.cs
- UpDownBaseDesigner.cs
- WhitespaceRuleReader.cs
- TextWriterEngine.cs
- CallInfo.cs
- DataServiceEntityAttribute.cs
- CLRBindingWorker.cs
- CodeDomConfigurationHandler.cs
- DataConnectionHelper.cs
- XmlRawWriter.cs
- ToolbarAUtomationPeer.cs
- RawKeyboardInputReport.cs
- GridViewRow.cs
- SecurityTokenReferenceStyle.cs
- SiteMap.cs
- Lasso.cs
- DetailsViewRowCollection.cs
- __TransparentProxy.cs
- Serializer.cs
- WindowsGraphicsWrapper.cs
- Bitmap.cs
- DataControlFieldCollection.cs
- HttpCacheParams.cs
- UnsupportedPolicyOptionsException.cs
- LogEntrySerializationException.cs
- FocusManager.cs
- ReliableSession.cs
- VariableQuery.cs
- OutputCacheSection.cs
- IntMinMaxAggregationOperator.cs
- ProcessHostFactoryHelper.cs
- UserInitiatedNavigationPermission.cs
- LongCountAggregationOperator.cs
- LinqDataSourceHelper.cs
- SessionPageStateSection.cs
- AssemblyNameProxy.cs
- BindingRestrictions.cs
- KeyedHashAlgorithm.cs
- SimpleHandlerFactory.cs
- ListParagraph.cs
- CustomValidator.cs
- ColumnTypeConverter.cs
- DictionaryManager.cs
- Popup.cs
- ReceiveDesigner.xaml.cs
- FormViewCommandEventArgs.cs
- HTMLTagNameToTypeMapper.cs
- ConsoleCancelEventArgs.cs