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
- OleDbCommand.cs
- ILGenerator.cs
- WebAdminConfigurationHelper.cs
- DefaultBindingPropertyAttribute.cs
- QilLiteral.cs
- Mappings.cs
- HttpBrowserCapabilitiesBase.cs
- ResourceBinder.cs
- DocumentViewerAutomationPeer.cs
- ArrayExtension.cs
- Timer.cs
- PathGeometry.cs
- XomlCompilerResults.cs
- ProjectedWrapper.cs
- DictionaryCustomTypeDescriptor.cs
- Camera.cs
- CreateUserWizard.cs
- RadialGradientBrush.cs
- CompilerGlobalScopeAttribute.cs
- IQueryable.cs
- FlowLayoutSettings.cs
- ProviderBase.cs
- DataGridRelationshipRow.cs
- InitialServerConnectionReader.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- XslTransform.cs
- ServiceContractListItemList.cs
- NavigationFailedEventArgs.cs
- SqlColumnizer.cs
- HotSpotCollectionEditor.cs
- VisualCollection.cs
- RequestSecurityTokenResponseCollection.cs
- SearchForVirtualItemEventArgs.cs
- CodeGotoStatement.cs
- PropertyEmitter.cs
- HTMLTagNameToTypeMapper.cs
- ScriptResourceDefinition.cs
- loginstatus.cs
- FontStyleConverter.cs
- EntityCommandDefinition.cs
- BooleanConverter.cs
- WebServiceData.cs
- TypeToken.cs
- keycontainerpermission.cs
- FormsAuthentication.cs
- DebugViewWriter.cs
- IdentifierService.cs
- AutoSizeToolBoxItem.cs
- AdapterUtil.cs
- Stack.cs
- DateTimePicker.cs
- EventLogPermissionHolder.cs
- ParseElement.cs
- MsmqHostedTransportConfiguration.cs
- BuildDependencySet.cs
- BamlRecordWriter.cs
- WaitingCursor.cs
- COM2EnumConverter.cs
- WriteableBitmap.cs
- ResourceLoader.cs
- SchemaTableOptionalColumn.cs
- CheckoutException.cs
- WebPartDisplayMode.cs
- VariantWrapper.cs
- VirtualDirectoryMappingCollection.cs
- CodeCommentStatementCollection.cs
- ForceCopyBuildProvider.cs
- CharAnimationBase.cs
- ListControl.cs
- EmptyEnumerator.cs
- CodeExpressionCollection.cs
- FileSystemWatcher.cs
- ComplexLine.cs
- JournalEntryListConverter.cs
- LostFocusEventManager.cs
- TransformerTypeCollection.cs
- StaticDataManager.cs
- SqlConnectionFactory.cs
- HostingEnvironment.cs
- EventProviderWriter.cs
- WindowsRegion.cs
- ContainerSelectorGlyph.cs
- SoundPlayer.cs
- ListBoxAutomationPeer.cs
- DecimalKeyFrameCollection.cs
- DesigntimeLicenseContextSerializer.cs
- CqlGenerator.cs
- GatewayIPAddressInformationCollection.cs
- DateTimeUtil.cs
- PointAnimation.cs
- typedescriptorpermissionattribute.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SoapInteropTypes.cs
- AccessDataSourceWizardForm.cs
- SchemaSetCompiler.cs
- Propagator.cs
- ProfileService.cs
- OdbcHandle.cs
- Currency.cs
- input.cs