Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DataGridCellsPresenter.cs
- WindowsPrincipal.cs
- ScriptControl.cs
- SharedMemory.cs
- CompilerGeneratedAttribute.cs
- CompositeScriptReference.cs
- Switch.cs
- DtdParser.cs
- SqlDataSource.cs
- XmlCustomFormatter.cs
- ListViewItemEventArgs.cs
- IntSecurity.cs
- DataServiceRequestException.cs
- RenderData.cs
- ContextMenuService.cs
- SizeFConverter.cs
- GradientStop.cs
- BaseDataList.cs
- CombinedGeometry.cs
- IsolatedStorageFile.cs
- SelectionEditingBehavior.cs
- KeyEventArgs.cs
- BoundField.cs
- ArrangedElementCollection.cs
- DiscoveryInnerClientAdhocCD1.cs
- PrePrepareMethodAttribute.cs
- StorageFunctionMapping.cs
- LoginName.cs
- ValidationHelper.cs
- DataGridViewColumn.cs
- EmptyControlCollection.cs
- InputLangChangeRequestEvent.cs
- BaseDataList.cs
- ListViewTableCell.cs
- AssemblyName.cs
- HttpModuleCollection.cs
- HtmlInputSubmit.cs
- SynchronizedDispatch.cs
- KnownTypes.cs
- SystemResourceHost.cs
- StorageBasedPackageProperties.cs
- FlowchartDesigner.Helpers.cs
- OdbcError.cs
- Schema.cs
- HuffmanTree.cs
- PeerNeighborManager.cs
- FileNotFoundException.cs
- TreeViewEvent.cs
- CommonProperties.cs
- StickyNoteContentControl.cs
- CriticalExceptions.cs
- KnownColorTable.cs
- SqlDataSource.cs
- NameTable.cs
- SelectManyQueryOperator.cs
- WSDualHttpBindingCollectionElement.cs
- UnsafePeerToPeerMethods.cs
- OdbcCommand.cs
- DefaultParameterValueAttribute.cs
- MeshGeometry3D.cs
- InlinedAggregationOperator.cs
- ExceptionRoutedEventArgs.cs
- ToolboxBitmapAttribute.cs
- MessageSmuggler.cs
- Html32TextWriter.cs
- ListViewDesigner.cs
- Parameter.cs
- EraserBehavior.cs
- DesignBindingEditor.cs
- TransformConverter.cs
- ExpressionBuilder.cs
- RadioButtonFlatAdapter.cs
- ToolStripPanelRow.cs
- XmlSchemaFacet.cs
- MailMessage.cs
- CodeMemberField.cs
- SqlAliasesReferenced.cs
- PlacementWorkspace.cs
- XmlNodeList.cs
- BulletChrome.cs
- ConnectionPoint.cs
- TraceListener.cs
- DataGridViewUtilities.cs
- SecurityChannel.cs
- GlobalizationAssembly.cs
- LockedBorderGlyph.cs
- HttpContextWrapper.cs
- MemberDescriptor.cs
- ConfigurationElement.cs
- Grid.cs
- XmlSchemaGroupRef.cs
- TitleStyle.cs
- ComponentDispatcher.cs
- BindingListCollectionView.cs
- Visual3D.cs
- ToolStripItemClickedEventArgs.cs
- NativeMethods.cs
- ConfigurationHelpers.cs
- TimerEventSubscriptionCollection.cs
- MediaEntryAttribute.cs