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
- DownloadProgressEventArgs.cs
- TraceUtils.cs
- StylusPointPropertyId.cs
- OleDbWrapper.cs
- LinkConverter.cs
- OperationParameterInfo.cs
- LineVisual.cs
- PermissionSet.cs
- ScrollChrome.cs
- IPGlobalProperties.cs
- CompilationUtil.cs
- RelationshipFixer.cs
- EventArgs.cs
- StrongNameUtility.cs
- ElapsedEventArgs.cs
- AssemblyInfo.cs
- SEHException.cs
- HttpCookie.cs
- CorruptStoreException.cs
- TextContainerChangeEventArgs.cs
- CqlLexerHelpers.cs
- ParseHttpDate.cs
- PhoneCallDesigner.cs
- _ListenerRequestStream.cs
- templategroup.cs
- RectAnimationClockResource.cs
- SmtpReplyReaderFactory.cs
- FileAuthorizationModule.cs
- TimeZoneNotFoundException.cs
- TableLayoutColumnStyleCollection.cs
- FastEncoder.cs
- MetabaseSettings.cs
- AssemblyCache.cs
- VectorAnimationUsingKeyFrames.cs
- CodeCommentStatement.cs
- ObjectStateManager.cs
- DataGridViewHeaderCell.cs
- CompilerCollection.cs
- PolicyException.cs
- HandlerFactoryWrapper.cs
- SelectionManager.cs
- SqlDataAdapter.cs
- LinkUtilities.cs
- HandlerWithFactory.cs
- DescendantOverDescendantQuery.cs
- PackageRelationshipSelector.cs
- MappingModelBuildProvider.cs
- ContainerVisual.cs
- WebPartZoneCollection.cs
- PostBackTrigger.cs
- Int32Collection.cs
- StyleReferenceConverter.cs
- DateTimeValueSerializerContext.cs
- ElementHostPropertyMap.cs
- ClientTarget.cs
- ChildrenQuery.cs
- TreeViewBindingsEditorForm.cs
- InvalidOleVariantTypeException.cs
- MouseButtonEventArgs.cs
- TimeSpanConverter.cs
- SoapMessage.cs
- KeyFrames.cs
- FormsAuthentication.cs
- OdbcCommandBuilder.cs
- ControlValuePropertyAttribute.cs
- RelationshipConverter.cs
- Journaling.cs
- SortedDictionary.cs
- UiaCoreApi.cs
- webbrowsersite.cs
- RegexWorker.cs
- RegexStringValidator.cs
- FrameworkElement.cs
- AssemblyBuilder.cs
- NumberFormatter.cs
- RepeatButtonAutomationPeer.cs
- ReceiveSecurityHeaderElementManager.cs
- DeflateEmulationStream.cs
- FunctionImportMapping.cs
- VersionedStreamOwner.cs
- _TransmitFileOverlappedAsyncResult.cs
- PriorityBindingExpression.cs
- ObsoleteAttribute.cs
- ByteStack.cs
- SHA512.cs
- FieldTemplateFactory.cs
- NamedPermissionSet.cs
- SqlRowUpdatedEvent.cs
- VisualTarget.cs
- ProbeMatchesCD1.cs
- ExpressionVisitorHelpers.cs
- StickyNoteAnnotations.cs
- AppSettingsExpressionBuilder.cs
- TextControl.cs
- Timeline.cs
- Compiler.cs
- CodeTypeOfExpression.cs
- IPEndPointCollection.cs
- NetworkAddressChange.cs
- PrimitiveXmlSerializers.cs