Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / ListViewVirtualItemsSelectionRangeChangedEvent.cs / 1 / 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
- WmlControlAdapter.cs
- CqlIdentifiers.cs
- ServiceInstanceProvider.cs
- CompoundFileStorageReference.cs
- StatusBarPanelClickEvent.cs
- XmlStreamStore.cs
- SystemIcmpV4Statistics.cs
- EventLogEntryCollection.cs
- CompatibleComparer.cs
- ButtonBaseAdapter.cs
- DynamicField.cs
- ListViewUpdateEventArgs.cs
- XPathChildIterator.cs
- HandlerBase.cs
- RemotingException.cs
- ChameleonKey.cs
- DataRelationCollection.cs
- RtfControlWordInfo.cs
- AssemblyEvidenceFactory.cs
- EntityProviderServices.cs
- AdRotator.cs
- PreProcessInputEventArgs.cs
- cookiecontainer.cs
- XmlSchemaFacet.cs
- ParsedAttributeCollection.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- ProcessThread.cs
- OutArgument.cs
- WebPartManager.cs
- CompilerLocalReference.cs
- HtmlTableRowCollection.cs
- DecimalConverter.cs
- StateManagedCollection.cs
- CompositeScriptReferenceEventArgs.cs
- ZeroOpNode.cs
- RenderDataDrawingContext.cs
- JoinTreeSlot.cs
- StreamResourceInfo.cs
- PopupRootAutomationPeer.cs
- VersionedStream.cs
- TraceLog.cs
- CustomErrorsSectionWrapper.cs
- PageContent.cs
- SelectorItemAutomationPeer.cs
- ColorConvertedBitmapExtension.cs
- SqlBulkCopyColumnMapping.cs
- SqlWebEventProvider.cs
- BaseTemplatedMobileComponentEditor.cs
- UriScheme.cs
- AspCompat.cs
- PageParserFilter.cs
- CqlWriter.cs
- AnnotationAuthorChangedEventArgs.cs
- BitmapCache.cs
- ConfigXmlSignificantWhitespace.cs
- BridgeDataRecord.cs
- ZoneMembershipCondition.cs
- DurableInstanceContextProvider.cs
- ThemeDirectoryCompiler.cs
- BinaryMethodMessage.cs
- TraceSection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- StorageScalarPropertyMapping.cs
- ObjectHelper.cs
- WindowsSlider.cs
- SoapFormatterSinks.cs
- InstanceDescriptor.cs
- MenuItemBindingCollection.cs
- ToolStripLabel.cs
- WriteFileContext.cs
- ApplicationId.cs
- TabPage.cs
- PopupEventArgs.cs
- TabletCollection.cs
- CriticalHandle.cs
- securitycriticaldataformultiplegetandset.cs
- Menu.cs
- Console.cs
- RepeatEnumerable.cs
- SiteMapNodeItemEventArgs.cs
- HostedTcpTransportManager.cs
- EventTrigger.cs
- ScalarConstant.cs
- SslStreamSecurityBindingElement.cs
- ResourceReader.cs
- HtmlForm.cs
- EntityDesignerDataSourceView.cs
- MatrixValueSerializer.cs
- EnterpriseServicesHelper.cs
- ControlValuePropertyAttribute.cs
- EdmConstants.cs
- Adorner.cs
- UInt16.cs
- PaintEvent.cs
- XmlSchemaSimpleTypeList.cs
- ParameterReplacerVisitor.cs
- regiisutil.cs
- BrowserDefinition.cs
- StreamProxy.cs
- QuaternionRotation3D.cs