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
- SQLBinaryStorage.cs
- DiscoveryMessageProperty.cs
- InstanceCreationEditor.cs
- StringBlob.cs
- DeclarationUpdate.cs
- TimestampInformation.cs
- SqlDataSourceView.cs
- _AuthenticationState.cs
- DrawItemEvent.cs
- RuntimeHandles.cs
- LinkedList.cs
- EncodingTable.cs
- Geometry3D.cs
- NativeObjectSecurity.cs
- MenuDesigner.cs
- ContainerParagraph.cs
- RtType.cs
- Timer.cs
- SqlCrossApplyToCrossJoin.cs
- StringComparer.cs
- DataServiceProviderMethods.cs
- EventManager.cs
- EntityDataSourceViewSchema.cs
- WebPageTraceListener.cs
- autovalidator.cs
- COM2ExtendedUITypeEditor.cs
- OdbcParameter.cs
- UpnEndpointIdentity.cs
- MDIWindowDialog.cs
- Baml2006Reader.cs
- ListChangedEventArgs.cs
- WebContext.cs
- User.cs
- KeyEventArgs.cs
- DynamicResourceExtensionConverter.cs
- objectresult_tresulttype.cs
- SoapSchemaExporter.cs
- CapabilitiesState.cs
- InfoCardKeyedHashAlgorithm.cs
- TextEditor.cs
- SqlCaseSimplifier.cs
- NativeMethods.cs
- BreakRecordTable.cs
- ApplicationContext.cs
- DaylightTime.cs
- QuaternionAnimation.cs
- BitmapEffectInputConnector.cs
- OleDbConnectionInternal.cs
- ServiceSecurityContext.cs
- GridItemCollection.cs
- ConnectionOrientedTransportElement.cs
- TypeUtil.cs
- AttachedProperty.cs
- ExeConfigurationFileMap.cs
- RolePrincipal.cs
- UInt16.cs
- InternalPermissions.cs
- NotifyInputEventArgs.cs
- InheritanceContextChangedEventManager.cs
- RuntimeIdentifierPropertyAttribute.cs
- TextEmbeddedObject.cs
- NumericUpDownAccelerationCollection.cs
- Page.cs
- MimePart.cs
- SqlCacheDependencySection.cs
- TextPointerBase.cs
- OdbcErrorCollection.cs
- TransformDescriptor.cs
- QilXmlWriter.cs
- ElementAction.cs
- VScrollProperties.cs
- UTF8Encoding.cs
- Int32RectValueSerializer.cs
- SharedRuntimeState.cs
- HitTestParameters.cs
- RectAnimation.cs
- NamedObject.cs
- XmlSchemaSimpleTypeUnion.cs
- WSDualHttpSecurity.cs
- Tag.cs
- EncoderParameters.cs
- PartialCachingAttribute.cs
- HttpStreamXmlDictionaryWriter.cs
- AnnotationResourceCollection.cs
- LineSegment.cs
- AutomationPattern.cs
- ScrollItemPatternIdentifiers.cs
- Single.cs
- NullableFloatAverageAggregationOperator.cs
- DynamicResourceExtensionConverter.cs
- InputBinding.cs
- ExeConfigurationFileMap.cs
- ObjectToken.cs
- SessionEndedEventArgs.cs
- CompiledIdentityConstraint.cs
- SoapInteropTypes.cs
- TextProperties.cs
- Lease.cs
- Action.cs
- RepeatButton.cs