Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------------------ //// 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
- BufferedGraphicsManager.cs
- PagerSettings.cs
- MissingMemberException.cs
- ConfigurationException.cs
- FontFamily.cs
- MenuCommandService.cs
- DataColumn.cs
- ColorConvertedBitmap.cs
- RijndaelManaged.cs
- ListViewInsertEventArgs.cs
- MsmqChannelFactoryBase.cs
- XmlObjectSerializerReadContext.cs
- StrongNameKeyPair.cs
- XmlnsDictionary.cs
- BindingElementCollection.cs
- RectangleConverter.cs
- HtmlElementCollection.cs
- XmlDesignerDataSourceView.cs
- WmlTextViewAdapter.cs
- __Filters.cs
- InkCanvasAutomationPeer.cs
- GeneralTransform3DTo2DTo3D.cs
- ActivityStatusChangeEventArgs.cs
- DBDataPermissionAttribute.cs
- EventSinkHelperWriter.cs
- WinEventQueueItem.cs
- Parameter.cs
- ComPlusThreadInitializer.cs
- TagMapInfo.cs
- DNS.cs
- GPRECT.cs
- ServiceObjectContainer.cs
- MatrixTransform.cs
- ExchangeUtilities.cs
- XmlSchemaObject.cs
- AppSettingsSection.cs
- InvokeHandlers.cs
- NavigationPropertyAccessor.cs
- AppDomainManager.cs
- ExpandoClass.cs
- DataServiceQueryException.cs
- ScaleTransform3D.cs
- ToolStripOverflow.cs
- Matrix.cs
- ObjectHelper.cs
- MsmqProcessProtocolHandler.cs
- ConstructorNeedsTagAttribute.cs
- Int64.cs
- SqlInfoMessageEvent.cs
- BitmapEffectvisualstate.cs
- AttributeSetAction.cs
- TreeNode.cs
- UpdatePanelControlTrigger.cs
- _NegoStream.cs
- TreeSet.cs
- WorkflowView.cs
- ToolStripCollectionEditor.cs
- MultiSelectRootGridEntry.cs
- PropertySourceInfo.cs
- XmlLinkedNode.cs
- ConsumerConnectionPoint.cs
- FormatterConverter.cs
- BinarySerializer.cs
- ElementNotEnabledException.cs
- CodeMethodReturnStatement.cs
- Config.cs
- CustomActivityDesigner.cs
- NumberFormatter.cs
- StandardMenuStripVerb.cs
- ListViewInsertionMark.cs
- Comparer.cs
- ClientRolePrincipal.cs
- UInt64.cs
- UserNamePasswordClientCredential.cs
- EntitySqlQueryState.cs
- LocalIdCollection.cs
- PagesSection.cs
- PostBackOptions.cs
- DateTime.cs
- ProfileSection.cs
- _MultipleConnectAsync.cs
- ActivationServices.cs
- DatagridviewDisplayedBandsData.cs
- RichTextBox.cs
- NativeMethodsOther.cs
- BamlRecordWriter.cs
- ReflectionTypeLoadException.cs
- TransactedReceiveData.cs
- PrimitiveXmlSerializers.cs
- InputReport.cs
- ToolStripCollectionEditor.cs
- OdbcPermission.cs
- WaitHandle.cs
- NegotiateStream.cs
- PopupControlService.cs
- Color.cs
- FaultReasonText.cs
- ManipulationStartedEventArgs.cs
- BamlReader.cs
- RemoteWebConfigurationHostStream.cs