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
- ProtocolsConfigurationHandler.cs
- Graphics.cs
- TextServicesCompartment.cs
- HMACMD5.cs
- CallSiteHelpers.cs
- ComponentCollection.cs
- FlowDocument.cs
- _NegotiateClient.cs
- MediaEntryAttribute.cs
- MD5CryptoServiceProvider.cs
- WebPartManager.cs
- DetailsViewDeletedEventArgs.cs
- DragDeltaEventArgs.cs
- RsaElement.cs
- WindowsFormsLinkLabel.cs
- MinimizableAttributeTypeConverter.cs
- DebugInfoExpression.cs
- CustomLineCap.cs
- MimeFormatter.cs
- Panel.cs
- NetStream.cs
- _DigestClient.cs
- MediaCommands.cs
- XmlSchemaAttributeGroup.cs
- ContainerParagraph.cs
- ClientSettingsProvider.cs
- WebConfigurationManager.cs
- DeclarativeCatalogPart.cs
- TreeNodeStyleCollection.cs
- RuntimeArgument.cs
- assemblycache.cs
- WebDescriptionAttribute.cs
- EntityDesignerDataSourceView.cs
- PropertyPath.cs
- DbQueryCommandTree.cs
- CodeNamespaceImport.cs
- InternalConfigConfigurationFactory.cs
- RemotingException.cs
- ManipulationDelta.cs
- XmlDataLoader.cs
- DeferredTextReference.cs
- DataGridCheckBoxColumn.cs
- _IPv6Address.cs
- RankException.cs
- VerificationException.cs
- GenericTypeParameterBuilder.cs
- MessageHeaderInfoTraceRecord.cs
- ActiveXContainer.cs
- EntityContainerAssociationSetEnd.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DataGridHeaderBorder.cs
- DiffuseMaterial.cs
- PositiveTimeSpanValidator.cs
- XmlUtf8RawTextWriter.cs
- ItemCheckedEvent.cs
- TextWriter.cs
- CommandBindingCollection.cs
- TextStore.cs
- QuotaThrottle.cs
- DataGridHyperlinkColumn.cs
- DbDataRecord.cs
- BigIntegerStorage.cs
- HostedElements.cs
- OlePropertyStructs.cs
- DrawingVisual.cs
- InheritedPropertyDescriptor.cs
- SourceFileBuildProvider.cs
- TextViewElement.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- TrayIconDesigner.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- DynamicHyperLink.cs
- DataObjectFieldAttribute.cs
- FieldNameLookup.cs
- SafeArrayTypeMismatchException.cs
- ZoneLinkButton.cs
- GrammarBuilderWildcard.cs
- ContextDataSourceContextData.cs
- Filter.cs
- ContextMenuAutomationPeer.cs
- TemplatePropertyEntry.cs
- DesignerDataColumn.cs
- ObjectDataSourceFilteringEventArgs.cs
- _SSPISessionCache.cs
- PageThemeBuildProvider.cs
- DBParameter.cs
- MetadataItem_Static.cs
- ConsoleCancelEventArgs.cs
- DataColumnChangeEvent.cs
- DmlSqlGenerator.cs
- ToolStripControlHost.cs
- SecurityTokenProviderContainer.cs
- FrameworkObject.cs
- ToolStripDesignerAvailabilityAttribute.cs
- Convert.cs
- SafeNativeMethods.cs
- ConsumerConnectionPointCollection.cs
- DefaultBindingPropertyAttribute.cs
- EditorAttribute.cs
- PageAsyncTask.cs