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
- PropertyInformationCollection.cs
- TreeNode.cs
- SqlInternalConnection.cs
- Pair.cs
- DbgUtil.cs
- ManagedWndProcTracker.cs
- ChannelSinkStacks.cs
- RuntimeResourceSet.cs
- FormsAuthenticationEventArgs.cs
- ColorMatrix.cs
- HttpRawResponse.cs
- remotingproxy.cs
- DesigntimeLicenseContext.cs
- UserControl.cs
- SqlMethods.cs
- HtmlImageAdapter.cs
- HighlightComponent.cs
- XmlSchemaAppInfo.cs
- InkCanvasSelection.cs
- Icon.cs
- XmlCharCheckingReader.cs
- ThrowHelper.cs
- EventData.cs
- FileLoadException.cs
- SiteMapNodeItemEventArgs.cs
- PtsPage.cs
- TokenizerHelper.cs
- BuildManager.cs
- RecognizerStateChangedEventArgs.cs
- HashCryptoHandle.cs
- CodeAttributeArgument.cs
- BufferBuilder.cs
- FileRecordSequenceHelper.cs
- Keywords.cs
- WorkflowInstanceRecord.cs
- XamlFigureLengthSerializer.cs
- BaseTemplateParser.cs
- AccessedThroughPropertyAttribute.cs
- ConnectionManagementSection.cs
- SQLResource.cs
- InvocationExpression.cs
- WebPartDisplayMode.cs
- _AuthenticationState.cs
- GridViewEditEventArgs.cs
- CqlParser.cs
- LicenseProviderAttribute.cs
- XmlSchemaCompilationSettings.cs
- MembershipUser.cs
- GradientStop.cs
- HighContrastHelper.cs
- GroupStyle.cs
- MetabaseServerConfig.cs
- OutputScope.cs
- EdmValidator.cs
- StringReader.cs
- KeyFrames.cs
- WebPartConnectionsCancelEventArgs.cs
- DataGrid.cs
- EdmFunction.cs
- ViewLoader.cs
- SemanticTag.cs
- ChtmlTextWriter.cs
- XPathNavigatorKeyComparer.cs
- BuilderInfo.cs
- AsymmetricKeyExchangeDeformatter.cs
- GridLengthConverter.cs
- GeneralTransform3DTo2D.cs
- UpdatePanelControlTrigger.cs
- RegisteredScript.cs
- DirectionalLight.cs
- dbenumerator.cs
- IntSecurity.cs
- RichTextBox.cs
- GACIdentityPermission.cs
- AssociationSet.cs
- DataMisalignedException.cs
- ConnectionStringsExpressionEditor.cs
- EntitySqlQueryState.cs
- ProcessModuleCollection.cs
- ipaddressinformationcollection.cs
- ProfileSettings.cs
- XmlNodeReader.cs
- InkCanvasSelection.cs
- TreeNodeBindingCollection.cs
- InlineUIContainer.cs
- SoapObjectWriter.cs
- ProfileBuildProvider.cs
- PartBasedPackageProperties.cs
- CollectionContainer.cs
- BackStopAuthenticationModule.cs
- activationcontext.cs
- CachedPathData.cs
- CommentEmitter.cs
- FontNamesConverter.cs
- ColumnCollection.cs
- GeneratedContractType.cs
- RSAOAEPKeyExchangeFormatter.cs
- ByteStream.cs
- UserNameServiceElement.cs
- SectionRecord.cs