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
- InputBuffer.cs
- FactoryId.cs
- SiteMapDataSource.cs
- TripleDESCryptoServiceProvider.cs
- Rectangle.cs
- ThumbAutomationPeer.cs
- TableCellsCollectionEditor.cs
- safesecurityhelperavalon.cs
- SplashScreen.cs
- DeferredReference.cs
- WindowsRichEditRange.cs
- ConnectionModeReader.cs
- GridItemCollection.cs
- NativeMethods.cs
- GridViewColumnCollection.cs
- WindowInteropHelper.cs
- SignedInfo.cs
- TextBounds.cs
- FileLevelControlBuilderAttribute.cs
- WindowsFormsHost.cs
- ThemeableAttribute.cs
- SoapIgnoreAttribute.cs
- StringExpressionSet.cs
- log.cs
- HtmlListAdapter.cs
- IntSecurity.cs
- ProfileSettingsCollection.cs
- WindowsHyperlink.cs
- QueryHandler.cs
- GeometryHitTestParameters.cs
- ClientConvert.cs
- GcSettings.cs
- CompressEmulationStream.cs
- WindowCollection.cs
- FlowDocument.cs
- UnsafeNativeMethods.cs
- MouseActionConverter.cs
- GenericTextProperties.cs
- DocumentPageView.cs
- Point4D.cs
- BindingExpressionUncommonField.cs
- RegexCompilationInfo.cs
- QuaternionKeyFrameCollection.cs
- XmlLangPropertyAttribute.cs
- ExpressionPrinter.cs
- MeshGeometry3D.cs
- WindowsIdentity.cs
- UpdatePanelTriggerCollection.cs
- UInt32Converter.cs
- PerformanceCountersElement.cs
- WebServiceClientProxyGenerator.cs
- SettingsPropertyValue.cs
- PropertyValidationContext.cs
- HMACSHA256.cs
- DataSourceHelper.cs
- SvcMapFileSerializer.cs
- XmlSigningNodeWriter.cs
- ContainerUtilities.cs
- Scripts.cs
- LogicalChannel.cs
- ProjectionPathBuilder.cs
- MsmqProcessProtocolHandler.cs
- RowsCopiedEventArgs.cs
- wmiprovider.cs
- TextBlock.cs
- SessionPageStateSection.cs
- TextEffectResolver.cs
- WebPartTransformer.cs
- ImageClickEventArgs.cs
- ListSortDescription.cs
- ParameterSubsegment.cs
- DataGridViewColumnConverter.cs
- XmlSchemaGroup.cs
- TypeDependencyAttribute.cs
- LayoutEditorPart.cs
- FontNamesConverter.cs
- ConfigurationErrorsException.cs
- Track.cs
- ExtensibleClassFactory.cs
- ViewStateModeByIdAttribute.cs
- Rotation3DKeyFrameCollection.cs
- XamlPoint3DCollectionSerializer.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ControlBuilderAttribute.cs
- BasicHttpMessageSecurityElement.cs
- NumericExpr.cs
- PeerNearMe.cs
- AdapterDictionary.cs
- StylusPlugin.cs
- ProgramNode.cs
- InvalidEnumArgumentException.cs
- FileLogRecordEnumerator.cs
- StoreUtilities.cs
- StrokeNodeData.cs
- cache.cs
- ApplicationInfo.cs
- MethodToken.cs
- RightNameExpirationInfoPair.cs
- NavigationPropertyEmitter.cs
- COM2Enum.cs