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
- RoleBoolean.cs
- ServiceThrottlingBehavior.cs
- XmlNullResolver.cs
- DbConnectionPoolCounters.cs
- EntityKey.cs
- ImageCodecInfo.cs
- DataControlFieldCell.cs
- BindStream.cs
- srgsitem.cs
- ExitEventArgs.cs
- DictionaryCustomTypeDescriptor.cs
- RecordConverter.cs
- wgx_sdk_version.cs
- UnmanagedMarshal.cs
- CustomLineCap.cs
- NotificationContext.cs
- ReadOnlyDataSource.cs
- DataKey.cs
- MultiSelectRootGridEntry.cs
- PenContext.cs
- MetadataArtifactLoaderFile.cs
- DataGridCaption.cs
- HttpServerVarsCollection.cs
- GraphicsState.cs
- TransactionContextManager.cs
- ListViewInsertEventArgs.cs
- rsa.cs
- CodeArrayIndexerExpression.cs
- HGlobalSafeHandle.cs
- WorkflowQueuingService.cs
- UtilityExtension.cs
- WebResponse.cs
- StylusPlugin.cs
- StringWriter.cs
- DataList.cs
- Compiler.cs
- OpenTypeLayoutCache.cs
- DNS.cs
- NameValueCache.cs
- GraphicsContext.cs
- Misc.cs
- XmlSchemaAnnotated.cs
- GeneralTransform3DCollection.cs
- RowToFieldTransformer.cs
- TransportConfigurationTypeElementCollection.cs
- NativeMethods.cs
- SQLDoubleStorage.cs
- CachedFontFace.cs
- Single.cs
- PropertySegmentSerializer.cs
- SlipBehavior.cs
- DataContext.cs
- OutOfProcStateClientManager.cs
- HuffCodec.cs
- TrackingServices.cs
- ReadOnlyHierarchicalDataSourceView.cs
- FixUpCollection.cs
- ControlAdapter.cs
- VolatileResourceManager.cs
- FixedSOMGroup.cs
- DataGridViewButtonColumn.cs
- TablePattern.cs
- DataContract.cs
- StateRuntime.cs
- ColorConvertedBitmap.cs
- XmlSchemaComplexContentExtension.cs
- RepeaterCommandEventArgs.cs
- Scalars.cs
- SchemaCollectionPreprocessor.cs
- PreservationFileWriter.cs
- WithStatement.cs
- PriorityItem.cs
- DnsPermission.cs
- ProfilePropertySettingsCollection.cs
- GridItem.cs
- ReadOnlyHierarchicalDataSource.cs
- AsymmetricKeyExchangeFormatter.cs
- FileUpload.cs
- GridLength.cs
- RightsManagementEncryptionTransform.cs
- XmlSerializationReader.cs
- SafeNativeMethodsCLR.cs
- TreeViewItem.cs
- Privilege.cs
- ZipIOExtraFieldPaddingElement.cs
- XmlSchemaSimpleTypeUnion.cs
- HttpResponseWrapper.cs
- ImageFormat.cs
- SuppressedPackageProperties.cs
- SQLInt16.cs
- TypeUnloadedException.cs
- HtmlHistory.cs
- EntityContainerEntitySet.cs
- DBSqlParserTable.cs
- ReflectionPermission.cs
- SdlChannelSink.cs
- SecurityException.cs
- DiagnosticTrace.cs
- PolicyManager.cs
- DetailsViewDesigner.cs