Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------------------ //// 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
- DataGridCellAutomationPeer.cs
- WindowsListViewScroll.cs
- _CacheStreams.cs
- DragDropManager.cs
- InternalControlCollection.cs
- ClickablePoint.cs
- DataMemberFieldEditor.cs
- MetadataCache.cs
- EntitySqlQueryCacheEntry.cs
- SizeChangedInfo.cs
- _ConnectionGroup.cs
- CreateParams.cs
- SecurityHelper.cs
- IDispatchConstantAttribute.cs
- SpellerStatusTable.cs
- BufferedGraphicsContext.cs
- MetaModel.cs
- TransformProviderWrapper.cs
- DataTableReaderListener.cs
- RequiredAttributeAttribute.cs
- SHA384CryptoServiceProvider.cs
- X500Name.cs
- XmlSchemaChoice.cs
- HttpApplication.cs
- KeyValueConfigurationCollection.cs
- SqlErrorCollection.cs
- shaperfactoryquerycacheentry.cs
- BuilderPropertyEntry.cs
- WindowsFormsHostAutomationPeer.cs
- MD5CryptoServiceProvider.cs
- SoapFaultCodes.cs
- HttpRuntime.cs
- RectangleF.cs
- PanningMessageFilter.cs
- ZipIOModeEnforcingStream.cs
- Rect3DValueSerializer.cs
- DesignerActionItem.cs
- ConstructorExpr.cs
- CollectionViewProxy.cs
- BrowserTree.cs
- MenuItemAutomationPeer.cs
- ProcessHostConfigUtils.cs
- IssuedTokenServiceCredential.cs
- DuplicateContext.cs
- DataGridViewCellConverter.cs
- ToolStripDropDown.cs
- AsyncCompletedEventArgs.cs
- ToolStripRendererSwitcher.cs
- MemoryPressure.cs
- DataGridViewSelectedColumnCollection.cs
- Mapping.cs
- DataServiceResponse.cs
- ResolvedKeyFrameEntry.cs
- FixedPosition.cs
- TransactedBatchContext.cs
- EnvelopedSignatureTransform.cs
- UnsafeNativeMethods.cs
- PrintDialog.cs
- UnsignedPublishLicense.cs
- SortKey.cs
- X500Name.cs
- EditorZoneBase.cs
- NativeWrapper.cs
- SignatureToken.cs
- FrameSecurityDescriptor.cs
- PrimitiveType.cs
- DebugView.cs
- OneOfTypeConst.cs
- WebException.cs
- HybridDictionary.cs
- PathFigureCollectionConverter.cs
- PathSegmentCollection.cs
- Stylesheet.cs
- SelectionPattern.cs
- ActivationServices.cs
- CachedFontFace.cs
- LeaseManager.cs
- BindingContext.cs
- BinaryNode.cs
- SubqueryRules.cs
- VerifyHashRequest.cs
- PerformanceCountersElement.cs
- DataSourceView.cs
- CompilerGlobalScopeAttribute.cs
- SoapHeaderException.cs
- ControlBindingsConverter.cs
- Image.cs
- SerializationException.cs
- ResolveInfo.cs
- RegexBoyerMoore.cs
- LicenseProviderAttribute.cs
- AppDomainManager.cs
- WebControlParameterProxy.cs
- AssemblyCollection.cs
- QilStrConcat.cs
- CqlParser.cs
- DoubleCollectionConverter.cs
- RectValueSerializer.cs
- CodeValidator.cs
- PcmConverter.cs