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
- DataTableCollection.cs
- ZipIOCentralDirectoryFileHeader.cs
- CompiledELinqQueryState.cs
- OdbcConnectionFactory.cs
- JsonCollectionDataContract.cs
- PageBuildProvider.cs
- XmlSchemaSimpleContentExtension.cs
- XPathDocumentIterator.cs
- DataRelationPropertyDescriptor.cs
- XmlSerializableWriter.cs
- MenuScrollingVisibilityConverter.cs
- SequentialWorkflowHeaderFooter.cs
- TableProviderWrapper.cs
- FrameworkContentElementAutomationPeer.cs
- XmlSchemaElement.cs
- GridItemPatternIdentifiers.cs
- ListControl.cs
- DataStorage.cs
- TransformProviderWrapper.cs
- DependencyPropertyDescriptor.cs
- SoapFormatterSinks.cs
- TransactionValidationBehavior.cs
- SocketException.cs
- Int32KeyFrameCollection.cs
- ToolStripItemTextRenderEventArgs.cs
- MarshalByRefObject.cs
- IsolatedStorageFilePermission.cs
- InputProcessorProfiles.cs
- MarkupWriter.cs
- FileCodeGroup.cs
- SiteMap.cs
- ExternalFile.cs
- RotateTransform.cs
- XPathAncestorIterator.cs
- StringCollectionEditor.cs
- ModuleElement.cs
- FormatterConverter.cs
- DataObjectAttribute.cs
- FormViewActionList.cs
- WebServiceErrorEvent.cs
- filewebresponse.cs
- DocumentSchemaValidator.cs
- SqlCachedBuffer.cs
- CoTaskMemHandle.cs
- Attributes.cs
- DesignTimeValidationFeature.cs
- PrimitiveCodeDomSerializer.cs
- MatrixTransform3D.cs
- IdentityReference.cs
- IntSecurity.cs
- Configuration.cs
- UnsafeNativeMethodsMilCoreApi.cs
- List.cs
- InheritanceContextChangedEventManager.cs
- FontCacheUtil.cs
- WindowsEditBoxRange.cs
- BasePattern.cs
- RtfControls.cs
- CryptoProvider.cs
- SineEase.cs
- Wrapper.cs
- XmlSchemaFacet.cs
- AttributeSetAction.cs
- TrackingExtract.cs
- DataGridTextBoxColumn.cs
- ServiceModelStringsVersion1.cs
- TextElementEnumerator.cs
- PackageFilter.cs
- ParameterRefs.cs
- TreeBuilderBamlTranslator.cs
- ContentType.cs
- OdbcEnvironment.cs
- ProfileProvider.cs
- DateTimeOffset.cs
- AmbientLight.cs
- Literal.cs
- HWStack.cs
- DataColumn.cs
- RelationshipDetailsRow.cs
- OracleString.cs
- ObjectItemAttributeAssemblyLoader.cs
- ConfigXmlComment.cs
- OracleCommand.cs
- COM2ExtendedBrowsingHandler.cs
- AutomationElement.cs
- MenuDesigner.cs
- FastEncoderWindow.cs
- SecurityCapabilities.cs
- PipelineModuleStepContainer.cs
- UrlMappingCollection.cs
- MatrixTransform3D.cs
- DataBoundControlHelper.cs
- cookie.cs
- ControlPaint.cs
- NativeCppClassAttribute.cs
- UriSectionData.cs
- DatePickerAutomationPeer.cs
- PathFigureCollection.cs
- StartFileNameEditor.cs
- AssemblyAssociatedContentFileAttribute.cs