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
- PTManager.cs
- SafeCryptHandles.cs
- TraceHandler.cs
- QueryRewriter.cs
- DataServiceRequest.cs
- IHttpResponseInternal.cs
- OutputCacheProfile.cs
- DataViewManagerListItemTypeDescriptor.cs
- MasterPageBuildProvider.cs
- CultureMapper.cs
- ProfileBuildProvider.cs
- XmlSchemaInferenceException.cs
- CharUnicodeInfo.cs
- XmlBinaryReader.cs
- DocumentPageViewAutomationPeer.cs
- RemoveStoryboard.cs
- IntPtr.cs
- PolyLineSegment.cs
- TimelineClockCollection.cs
- DataKey.cs
- ECDsaCng.cs
- ZoneButton.cs
- DockingAttribute.cs
- StrongNameSignatureInformation.cs
- QilGenerator.cs
- EventToken.cs
- XamlInt32CollectionSerializer.cs
- X509ChainElement.cs
- XmlTypeAttribute.cs
- AddInContractAttribute.cs
- DesignerAdRotatorAdapter.cs
- DataGridViewTextBoxEditingControl.cs
- PropertyPathWorker.cs
- ModelItem.cs
- CacheOutputQuery.cs
- AttributeSetAction.cs
- DirtyTextRange.cs
- MasterPageParser.cs
- SettingsSavedEventArgs.cs
- HorizontalAlignConverter.cs
- EditorAttribute.cs
- ChannelSinkStacks.cs
- ProcessDesigner.cs
- Enum.cs
- UIElementHelper.cs
- BamlRecordReader.cs
- XmlSchemaExporter.cs
- SelectionChangedEventArgs.cs
- HttpConfigurationContext.cs
- RayHitTestParameters.cs
- RestHandler.cs
- ReadOnlyDictionary.cs
- ConnectionConsumerAttribute.cs
- SortQuery.cs
- SecUtil.cs
- ComboBoxItem.cs
- CompilationUtil.cs
- BitmapImage.cs
- AnimatedTypeHelpers.cs
- WebSysDescriptionAttribute.cs
- TableRowCollection.cs
- BitmapEffectDrawing.cs
- SqlMetaData.cs
- Quaternion.cs
- VariantWrapper.cs
- TextDecorationUnitValidation.cs
- InternalBufferOverflowException.cs
- DictationGrammar.cs
- ComponentCollection.cs
- ActivityStatusChangeEventArgs.cs
- Util.cs
- ColorInterpolationModeValidation.cs
- ViewStateModeByIdAttribute.cs
- ComNativeDescriptor.cs
- ContractReference.cs
- ClientOptions.cs
- HostedHttpRequestAsyncResult.cs
- ColumnResult.cs
- AuthorizationSection.cs
- RouteItem.cs
- WebPartEditorCancelVerb.cs
- TextChange.cs
- StickyNoteContentControl.cs
- DecimalFormatter.cs
- NavigationService.cs
- SqlFlattener.cs
- SerializationSectionGroup.cs
- DataObjectAttribute.cs
- PriorityRange.cs
- SafeSerializationManager.cs
- Config.cs
- RecipientInfo.cs
- RtType.cs
- FastEncoderWindow.cs
- Utility.cs
- ManipulationVelocities.cs
- RadioButtonList.cs
- ContextMenuStripActionList.cs
- Menu.cs
- EntityContainerAssociationSet.cs