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
- PointLight.cs
- WebPartConnectVerb.cs
- ApplicationSecurityInfo.cs
- ProjectionPathSegment.cs
- SamlSecurityToken.cs
- ChangeDirector.cs
- CircleHotSpot.cs
- ResourceContainer.cs
- RoutedEvent.cs
- ElementProxy.cs
- AspNetSynchronizationContext.cs
- BulletedListEventArgs.cs
- SetStateEventArgs.cs
- DecimalAverageAggregationOperator.cs
- AttributeSetAction.cs
- SqlDataSourceView.cs
- TaskExtensions.cs
- WebPartEditorOkVerb.cs
- Size3D.cs
- RankException.cs
- EntityDataSourceSelectingEventArgs.cs
- Accessible.cs
- ThreadTrace.cs
- PointCollectionConverter.cs
- columnmapkeybuilder.cs
- AmbientProperties.cs
- XPathNodeInfoAtom.cs
- MouseActionValueSerializer.cs
- SqlMethods.cs
- Link.cs
- BindingNavigator.cs
- InputBindingCollection.cs
- VisualBrush.cs
- ListBoxAutomationPeer.cs
- LexicalChunk.cs
- fixedPageContentExtractor.cs
- Calendar.cs
- FormsAuthenticationTicket.cs
- Convert.cs
- ScalarConstant.cs
- MembershipValidatePasswordEventArgs.cs
- WebDescriptionAttribute.cs
- DataObject.cs
- BufferedGraphicsContext.cs
- MetadataItemSerializer.cs
- Propagator.JoinPropagator.cs
- DefaultPropertyAttribute.cs
- AssemblyCache.cs
- StreamInfo.cs
- IncrementalHitTester.cs
- CodeSnippetTypeMember.cs
- WindowsAltTab.cs
- VBIdentifierTrimConverter.cs
- LinkLabel.cs
- DataGridViewComboBoxEditingControl.cs
- TextRangeEdit.cs
- X509Extension.cs
- oledbconnectionstring.cs
- PackWebRequest.cs
- ToolboxItemWrapper.cs
- SaveFileDialog.cs
- MetadataCache.cs
- CatalogZoneBase.cs
- DataGridViewLayoutData.cs
- TextBoxView.cs
- OleDbCommand.cs
- ConnectionManagementSection.cs
- DbDeleteCommandTree.cs
- InputScope.cs
- CodeIndexerExpression.cs
- OdbcDataAdapter.cs
- SafeThreadHandle.cs
- ConsumerConnectionPoint.cs
- TabItem.cs
- DefaultParameterValueAttribute.cs
- RequestStatusBarUpdateEventArgs.cs
- NetworkStream.cs
- FtpRequestCacheValidator.cs
- ToolStripRenderEventArgs.cs
- ObjectSet.cs
- DiscardableAttribute.cs
- NameValuePair.cs
- Help.cs
- HttpPostLocalhostServerProtocol.cs
- TitleStyle.cs
- ObjectDataSourceView.cs
- CommonRemoteMemoryBlock.cs
- Transform.cs
- FixedStringLookup.cs
- TreeViewCancelEvent.cs
- OleAutBinder.cs
- DropShadowBitmapEffect.cs
- SendParametersContent.cs
- ValidationEventArgs.cs
- ResXResourceSet.cs
- Rect3D.cs
- CustomSignedXml.cs
- UserValidatedEventArgs.cs
- CodeStatementCollection.cs
- TaiwanCalendar.cs