Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- FunctionDetailsReader.cs
- ConsoleCancelEventArgs.cs
- COM2ComponentEditor.cs
- OrderByQueryOptionExpression.cs
- Dump.cs
- XmlILStorageConverter.cs
- Aggregates.cs
- Polyline.cs
- PlaceHolder.cs
- Table.cs
- DataServiceStreamProviderWrapper.cs
- BinaryObjectReader.cs
- SByte.cs
- CompoundFileIOPermission.cs
- Stylus.cs
- RelationshipConverter.cs
- ClientSection.cs
- DataRelation.cs
- UnsafeNativeMethods.cs
- RadioButtonAutomationPeer.cs
- GridViewRowEventArgs.cs
- TablePatternIdentifiers.cs
- TableLayoutStyle.cs
- EntitySqlQueryState.cs
- validationstate.cs
- BindingMemberInfo.cs
- FrameworkName.cs
- MLangCodePageEncoding.cs
- ManagementBaseObject.cs
- _LazyAsyncResult.cs
- ZoneButton.cs
- RuntimeCompatibilityAttribute.cs
- NegationPusher.cs
- IdentitySection.cs
- RtfToXamlLexer.cs
- TopClause.cs
- CultureMapper.cs
- WebPartTransformerCollection.cs
- SizeChangedInfo.cs
- TextLineResult.cs
- DBCommand.cs
- RuleRefElement.cs
- MetadataCache.cs
- SoapInteropTypes.cs
- FormViewModeEventArgs.cs
- UpdateManifestForBrowserApplication.cs
- PropertyValueUIItem.cs
- FormatterConverter.cs
- _SpnDictionary.cs
- SymmetricKeyWrap.cs
- QilName.cs
- JsonObjectDataContract.cs
- FormatVersion.cs
- ManifestSignatureInformation.cs
- HttpHandlerAction.cs
- ProviderBase.cs
- BitStream.cs
- NetTcpSecurity.cs
- GeometryGroup.cs
- TreeView.cs
- NodeLabelEditEvent.cs
- Argument.cs
- PackageFilter.cs
- XmlAttributeProperties.cs
- DbConnectionOptions.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DataGridViewHeaderCell.cs
- SimpleTypesSurrogate.cs
- ListControlBoundActionList.cs
- RepeaterCommandEventArgs.cs
- DataObject.cs
- BitmapImage.cs
- JsonReaderWriterFactory.cs
- WebConfigurationHost.cs
- LabelLiteral.cs
- HiddenField.cs
- NamedPipeHostedTransportConfiguration.cs
- Oci.cs
- PageRequestManager.cs
- DoubleAverageAggregationOperator.cs
- JsonXmlDataContract.cs
- SourceChangedEventArgs.cs
- ProjectionQueryOptionExpression.cs
- SponsorHelper.cs
- BrowserTree.cs
- UnsafeNativeMethodsTablet.cs
- mda.cs
- AppendHelper.cs
- WinInet.cs
- DataGridViewDataErrorEventArgs.cs
- DesignDataSource.cs
- RecognizeCompletedEventArgs.cs
- CollectionBase.cs
- LicenseContext.cs
- FtpWebRequest.cs
- Underline.cs
- XmlSchemas.cs
- BrowserCapabilitiesCompiler.cs
- ExpressionBuilder.cs
- PerformanceCountersElement.cs