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
- SimpleLine.cs
- NavigationProperty.cs
- ObjectViewQueryResultData.cs
- SRef.cs
- AttributeUsageAttribute.cs
- MenuAutoFormat.cs
- Timer.cs
- NamedPermissionSet.cs
- MonitorWrapper.cs
- Lease.cs
- ParserOptions.cs
- SecurityRuntime.cs
- ProcessInputEventArgs.cs
- CqlQuery.cs
- CollaborationHelperFunctions.cs
- DocumentViewerConstants.cs
- SaveFileDialogDesigner.cs
- Timer.cs
- DataObjectPastingEventArgs.cs
- ProtocolProfile.cs
- RC2.cs
- MulticastNotSupportedException.cs
- DbBuffer.cs
- SqlExpressionNullability.cs
- VirtualPathExtension.cs
- Application.cs
- CodeArrayIndexerExpression.cs
- X509Chain.cs
- WasNotInstalledException.cs
- ReachBasicContext.cs
- PatternMatcher.cs
- InvalidCastException.cs
- URL.cs
- LogLogRecord.cs
- AlphabeticalEnumConverter.cs
- LocatorBase.cs
- EventSinkHelperWriter.cs
- Debug.cs
- DataGridViewCellMouseEventArgs.cs
- ContentPlaceHolder.cs
- OleStrCAMarshaler.cs
- BinaryMethodMessage.cs
- MetadataItemEmitter.cs
- Queue.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- DataGridViewMethods.cs
- ParameterBuilder.cs
- SortQueryOperator.cs
- GenericAuthenticationEventArgs.cs
- InfiniteIntConverter.cs
- DataGridBoolColumn.cs
- Menu.cs
- infer.cs
- DelegateHelpers.cs
- Misc.cs
- XPathNavigatorKeyComparer.cs
- TableCell.cs
- DbParameterCollection.cs
- XmlSchemaSimpleContent.cs
- ListItem.cs
- XmlSerializerImportOptions.cs
- Classification.cs
- BitmapImage.cs
- FileNameEditor.cs
- GraphicsPath.cs
- HMACSHA384.cs
- AssemblyFilter.cs
- BamlMapTable.cs
- BitmapInitialize.cs
- GiveFeedbackEvent.cs
- GZipStream.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- QueryResults.cs
- MatchingStyle.cs
- InputReferenceExpression.cs
- IsolatedStorageException.cs
- OleDbReferenceCollection.cs
- XmlHelper.cs
- ConfigXmlWhitespace.cs
- UIHelper.cs
- WebPartAuthorizationEventArgs.cs
- XmlILCommand.cs
- ProxyFragment.cs
- PipeSecurity.cs
- TableCellCollection.cs
- XmlIncludeAttribute.cs
- WorkflowServiceAttributesTypeConverter.cs
- _NetworkingPerfCounters.cs
- pingexception.cs
- StdValidatorsAndConverters.cs
- SEHException.cs
- FamilyTypefaceCollection.cs
- DbDataSourceEnumerator.cs
- FullTextBreakpoint.cs
- ToolStrip.cs
- XmlSigningNodeWriter.cs
- HMACSHA256.cs
- HandlerFactoryCache.cs
- WebPartMenu.cs
- XmlQueryStaticData.cs