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
- TreeNodeEventArgs.cs
- HostedElements.cs
- Rule.cs
- VirtualizedCellInfoCollection.cs
- Int64Storage.cs
- GeometryCollection.cs
- handlecollector.cs
- MaskedTextBox.cs
- PromptStyle.cs
- TargetInvocationException.cs
- CodeThrowExceptionStatement.cs
- ColumnResizeUndoUnit.cs
- XPathAncestorIterator.cs
- PersistChildrenAttribute.cs
- TreeNode.cs
- Transform3DCollection.cs
- TextBounds.cs
- WebContext.cs
- UriGenerator.cs
- DirectionalLight.cs
- WorkflowApplicationUnloadedException.cs
- SQLByte.cs
- TreeNodeCollection.cs
- MessageHeaderT.cs
- InputManager.cs
- HideDisabledControlAdapter.cs
- ServiceX509SecurityTokenProvider.cs
- BooleanConverter.cs
- ValidationErrorCollection.cs
- CollectionContainer.cs
- XmlArrayItemAttributes.cs
- CodeAccessSecurityEngine.cs
- AudioLevelUpdatedEventArgs.cs
- ProcessManager.cs
- CachedRequestParams.cs
- CompositeCollectionView.cs
- Sql8ExpressionRewriter.cs
- OdbcFactory.cs
- TextDpi.cs
- SplineKeyFrames.cs
- BitmapSizeOptions.cs
- AttributeAction.cs
- PageSetupDialog.cs
- QuaternionAnimationBase.cs
- MetadataException.cs
- ClickablePoint.cs
- RelationshipSet.cs
- MimeTypePropertyAttribute.cs
- FreezableOperations.cs
- WorkflowPrinting.cs
- SchemaDeclBase.cs
- EntityProxyTypeInfo.cs
- TreeNode.cs
- DataGridViewCellStyleConverter.cs
- parserscommon.cs
- SqlBooleanizer.cs
- BamlBinaryReader.cs
- DelegatingTypeDescriptionProvider.cs
- COM2PropertyDescriptor.cs
- FunctionGenerator.cs
- HttpRuntimeSection.cs
- ResXFileRef.cs
- ListViewDataItem.cs
- SmiContext.cs
- DataGridViewLinkColumn.cs
- XPathNavigatorKeyComparer.cs
- InvalidComObjectException.cs
- ToolBar.cs
- XmlILAnnotation.cs
- ItemAutomationPeer.cs
- SecurityTimestamp.cs
- ConfigurationErrorsException.cs
- StreamGeometry.cs
- PathStreamGeometryContext.cs
- RelatedCurrencyManager.cs
- BaseComponentEditor.cs
- HttpCachePolicyElement.cs
- ClientProxyGenerator.cs
- CustomAttribute.cs
- Addressing.cs
- AuthenticationException.cs
- AssemblyResolver.cs
- Msec.cs
- NativeMethodsOther.cs
- CodeDelegateCreateExpression.cs
- ReadOnlyDictionary.cs
- smtpconnection.cs
- TreeBuilder.cs
- RelOps.cs
- DeclarativeCatalogPart.cs
- FieldToken.cs
- ConfigXmlAttribute.cs
- KeyValuePairs.cs
- ConfigurationValidatorBase.cs
- ReceiveErrorHandling.cs
- RuleAttributes.cs
- StateBag.cs
- LinearQuaternionKeyFrame.cs
- WebServiceFault.cs
- OdbcPermission.cs