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
- ListViewGroupItemCollection.cs
- ManagementBaseObject.cs
- NativeMethods.cs
- SemaphoreFullException.cs
- DataTableClearEvent.cs
- RtfControls.cs
- ContainerSelectorGlyph.cs
- Int32CAMarshaler.cs
- DataRelationCollection.cs
- InheritedPropertyDescriptor.cs
- SwitchAttribute.cs
- ColorConvertedBitmap.cs
- NavigationPropertyAccessor.cs
- ConnectionsZone.cs
- BrowsableAttribute.cs
- TransportConfigurationTypeElementCollection.cs
- DataGridViewImageCell.cs
- PointLight.cs
- Substitution.cs
- StylusEventArgs.cs
- DataGridViewCheckBoxColumn.cs
- TimeSpan.cs
- GridItemPattern.cs
- BrowserCapabilitiesCompiler.cs
- MetadataImporterQuotas.cs
- Soap.cs
- oledbmetadatacolumnnames.cs
- Cursor.cs
- UnsafeNativeMethods.cs
- ConfigurationPermission.cs
- Attributes.cs
- DbProviderManifest.cs
- InvokePattern.cs
- ListBox.cs
- DataSourceSelectArguments.cs
- odbcmetadatacollectionnames.cs
- TextAdaptor.cs
- Parser.cs
- GreenMethods.cs
- TreeBuilder.cs
- ExpandCollapseIsCheckedConverter.cs
- MetadataSource.cs
- XomlCompilerError.cs
- Accessible.cs
- mediapermission.cs
- DataGridSortCommandEventArgs.cs
- ZipIOExtraField.cs
- MultiBinding.cs
- SqlConnection.cs
- MethodRental.cs
- BasicViewGenerator.cs
- ManagementObject.cs
- designeractionlistschangedeventargs.cs
- IListConverters.cs
- QilGeneratorEnv.cs
- XmlNodeChangedEventManager.cs
- WinInet.cs
- Interlocked.cs
- XmlReaderDelegator.cs
- WindowsHyperlink.cs
- ProcessManager.cs
- WebBrowserContainer.cs
- RowVisual.cs
- ObjectTypeMapping.cs
- StrongNameKeyPair.cs
- OdbcConnection.cs
- AssociationSetEnd.cs
- SystemIPv6InterfaceProperties.cs
- sqlser.cs
- TabItem.cs
- PointAnimationBase.cs
- PropertyMapper.cs
- XmlQueryRuntime.cs
- InputDevice.cs
- XamlReader.cs
- TemplateColumn.cs
- ServicePointManager.cs
- ProfileServiceManager.cs
- ParameterRetriever.cs
- ApplicationException.cs
- DBNull.cs
- ReceiveReply.cs
- DBCSCodePageEncoding.cs
- LocatorPart.cs
- DecoderExceptionFallback.cs
- _HeaderInfoTable.cs
- VariableExpressionConverter.cs
- PtsHelper.cs
- DirectionalLight.cs
- OrderByExpression.cs
- InputLanguageEventArgs.cs
- NetworkInformationPermission.cs
- SHA512.cs
- WhileDesigner.xaml.cs
- DataDocumentXPathNavigator.cs
- NodeLabelEditEvent.cs
- WebPartCatalogAddVerb.cs
- LoginDesignerUtil.cs
- SupportsEventValidationAttribute.cs
- GenericWebPart.cs