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
- ParseElement.cs
- HtmlFormWrapper.cs
- tooltip.cs
- FlatButtonAppearance.cs
- EllipseGeometry.cs
- ProfileSection.cs
- CalendarDesigner.cs
- ReliabilityContractAttribute.cs
- DbConnectionHelper.cs
- DynamicMetaObject.cs
- StreamInfo.cs
- DynamicMetaObjectBinder.cs
- SpoolingTaskBase.cs
- DBConnectionString.cs
- Matrix3D.cs
- BinaryWriter.cs
- NameValuePermission.cs
- SqlDataSourceCache.cs
- CustomError.cs
- PeerTransportListenAddressValidatorAttribute.cs
- Evidence.cs
- TreeNodeCollection.cs
- ServerValidateEventArgs.cs
- InkPresenterAutomationPeer.cs
- TextViewBase.cs
- ParseElementCollection.cs
- TextTreeDeleteContentUndoUnit.cs
- ViewGenerator.cs
- WSSecurityTokenSerializer.cs
- QueryOptionExpression.cs
- DataGridViewCellValidatingEventArgs.cs
- CodeTypeReferenceSerializer.cs
- DecimalConverter.cs
- ListControlDataBindingHandler.cs
- ScaleTransform.cs
- AppDomain.cs
- UIElementCollection.cs
- WindowPattern.cs
- PerformanceCounter.cs
- SystemInfo.cs
- SafeHandles.cs
- EmbeddedMailObject.cs
- AnalyzedTree.cs
- RemotingSurrogateSelector.cs
- TimeEnumHelper.cs
- DbCommandTree.cs
- BrowserDefinitionCollection.cs
- OverrideMode.cs
- SignatureHelper.cs
- WebScriptEnablingElement.cs
- XmlSchemaAttributeGroupRef.cs
- PKCS1MaskGenerationMethod.cs
- Misc.cs
- ListDataBindEventArgs.cs
- TimelineClockCollection.cs
- NetMsmqBinding.cs
- ListItemCollection.cs
- FunctionImportElement.cs
- SettingsSavedEventArgs.cs
- TargetFrameworkUtil.cs
- XDeferredAxisSource.cs
- TableAdapterManagerMethodGenerator.cs
- IndentedWriter.cs
- GlobalEventManager.cs
- Dump.cs
- SmtpFailedRecipientException.cs
- ClientUIRequest.cs
- Vector3DValueSerializer.cs
- ChtmlPhoneCallAdapter.cs
- StatusBarPanelClickEvent.cs
- FormViewRow.cs
- CompositeFontFamily.cs
- CodeGeneratorOptions.cs
- XmlUtil.cs
- RelationalExpressions.cs
- CodeDefaultValueExpression.cs
- ComponentDispatcherThread.cs
- TableLayoutSettings.cs
- ProfileGroupSettings.cs
- DbgUtil.cs
- RenamedEventArgs.cs
- SoapProtocolReflector.cs
- ThrowHelper.cs
- NonValidatingSecurityTokenAuthenticator.cs
- HitTestResult.cs
- SynchronizingStream.cs
- HMACSHA512.cs
- DesignerAutoFormatStyle.cs
- ResourceExpressionBuilder.cs
- PageAsyncTask.cs
- EventItfInfo.cs
- DependencyPropertyChangedEventArgs.cs
- ContentFileHelper.cs
- ClientData.cs
- ObjectViewFactory.cs
- HostingEnvironment.cs
- SpoolingTask.cs
- Visual.cs
- ASCIIEncoding.cs
- Size3DConverter.cs