Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ListViewVirtualItemsSelectionRangeChangedEvent.cs / 1305376 / ListViewVirtualItemsSelectionRangeChangedEvent.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 ListViewVirtualItemsSelectionRangeChangedEventArgs : EventArgs { private int startIndex; private int endIndex; private bool isSelected; ////// /// Constructs a ListViewVirtualItemsSelectionRangeChangedEventArgs object. /// public ListViewVirtualItemsSelectionRangeChangedEventArgs(int startIndex, int endIndex, bool isSelected) { if (startIndex > endIndex) { throw new ArgumentException(SR.GetString(SR.ListViewStartIndexCannotBeLargerThanEndIndex)); } this.startIndex = startIndex; this.endIndex = endIndex; this.isSelected = isSelected; } ////// /// Returns the end of the range where the selection changed /// public int EndIndex { get { return this.endIndex; } } ////// /// Return true if the items are selected /// public bool IsSelected { get { return this.isSelected; } } ////// /// Returns the begining of the range where the selection changed /// public int StartIndex { get { return this.startIndex; } } } } // 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
- Simplifier.cs
- GZipUtils.cs
- CaseStatementSlot.cs
- DecoderNLS.cs
- CookielessData.cs
- ObsoleteAttribute.cs
- Subtree.cs
- CheckoutException.cs
- httpapplicationstate.cs
- AssociationTypeEmitter.cs
- TemplateManager.cs
- DocumentCollection.cs
- UrlMapping.cs
- ReferenceConverter.cs
- SecurityPermission.cs
- PartManifestEntry.cs
- PropertyTabAttribute.cs
- Command.cs
- CompositeFontFamily.cs
- ProfileSection.cs
- HttpListener.cs
- RemotingConfigParser.cs
- MessageSmuggler.cs
- SqlInfoMessageEvent.cs
- InstancePersistenceContext.cs
- DocumentReferenceCollection.cs
- Pipe.cs
- MatrixTransform.cs
- WorkflowViewService.cs
- GridViewUpdatedEventArgs.cs
- RtfControlWordInfo.cs
- DataBoundControl.cs
- TableRow.cs
- PeerIPHelper.cs
- ModuleConfigurationInfo.cs
- EventSetter.cs
- ProcessModule.cs
- ReadingWritingEntityEventArgs.cs
- HelpInfo.cs
- AppDomainAttributes.cs
- NullableBoolConverter.cs
- DesignerSerializerAttribute.cs
- Certificate.cs
- ComponentConverter.cs
- RegexFCD.cs
- Lease.cs
- OrderedHashRepartitionEnumerator.cs
- TypeUnloadedException.cs
- XmlAttributeOverrides.cs
- DataRowCollection.cs
- ShapingWorkspace.cs
- UnsafeNativeMethods.cs
- Point3D.cs
- StringWriter.cs
- TransactionManager.cs
- InternalControlCollection.cs
- PrePrepareMethodAttribute.cs
- ObjectFullSpanRewriter.cs
- MouseActionValueSerializer.cs
- DataGridViewControlCollection.cs
- PeerNameRecordCollection.cs
- XmlAttributeCollection.cs
- Model3DGroup.cs
- TextRange.cs
- XPathCompileException.cs
- BasicCellRelation.cs
- Win32NamedPipes.cs
- SchemaImporterExtensionElement.cs
- TreeNodeStyle.cs
- FixedTextContainer.cs
- BaseParagraph.cs
- XmlSchemaChoice.cs
- PositiveTimeSpanValidator.cs
- ProcessManager.cs
- CodeGeneratorOptions.cs
- SQLBytesStorage.cs
- FileDialog.cs
- BufferBuilder.cs
- OutputCacheModule.cs
- SimpleHandlerBuildProvider.cs
- ButtonBase.cs
- OleDbTransaction.cs
- XPathParser.cs
- Style.cs
- EdmMember.cs
- DataGridViewButtonColumn.cs
- Screen.cs
- HexParser.cs
- TdsParserSafeHandles.cs
- AuthStoreRoleProvider.cs
- DescendantOverDescendantQuery.cs
- PrintDocument.cs
- DesignerLinkAdapter.cs
- Span.cs
- ProtectedConfiguration.cs
- SystemKeyConverter.cs
- ModuleConfigurationInfo.cs
- XsdBuildProvider.cs
- EntityProviderFactory.cs
- TemplatePagerField.cs