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
- ActionMessageFilter.cs
- ToolStripSeparatorRenderEventArgs.cs
- SqlTrackingQuery.cs
- CodeDefaultValueExpression.cs
- nulltextnavigator.cs
- ButtonColumn.cs
- BrowserDefinitionCollection.cs
- safesecurityhelperavalon.cs
- XsdBuilder.cs
- Suspend.cs
- AuthenticationException.cs
- GorillaCodec.cs
- GridItemCollection.cs
- WebUtil.cs
- WebScriptServiceHostFactory.cs
- DPAPIProtectedConfigurationProvider.cs
- ZoneMembershipCondition.cs
- XsdDataContractExporter.cs
- XmlImplementation.cs
- Material.cs
- ContextMenuStrip.cs
- TemplateBamlRecordReader.cs
- SamlSubject.cs
- Size3D.cs
- Cursor.cs
- TextParaLineResult.cs
- _SafeNetHandles.cs
- DbParameterHelper.cs
- HttpWebRequest.cs
- GenericUriParser.cs
- WindowsFont.cs
- TemplateBuilder.cs
- ProtocolsConfiguration.cs
- DataPagerField.cs
- CurrentChangedEventManager.cs
- ScriptControlDescriptor.cs
- KoreanLunisolarCalendar.cs
- DataColumnMappingCollection.cs
- ProgressPage.cs
- SSmlParser.cs
- SetMemberBinder.cs
- TemplateControl.cs
- DefaultValidator.cs
- ProgressBar.cs
- Helpers.cs
- SchemaTableColumn.cs
- SpinLock.cs
- EnumerableWrapperWeakToStrong.cs
- ShaderEffect.cs
- ColumnMapVisitor.cs
- TableRowGroup.cs
- CopyNodeSetAction.cs
- PropertyEmitter.cs
- ThreadExceptionEvent.cs
- SoapAttributeAttribute.cs
- EntityWrapper.cs
- HtmlDocument.cs
- GAC.cs
- IntSecurity.cs
- InfoCardRequestException.cs
- KerberosSecurityTokenProvider.cs
- RootBrowserWindowAutomationPeer.cs
- ApplicationServiceManager.cs
- ScrollBarAutomationPeer.cs
- Simplifier.cs
- XamlGridLengthSerializer.cs
- PackWebResponse.cs
- ViewEventArgs.cs
- StringUtil.cs
- SimpleMailWebEventProvider.cs
- WSHttpBindingElement.cs
- Operator.cs
- StyleModeStack.cs
- WindowsFormsSynchronizationContext.cs
- OracleFactory.cs
- XhtmlBasicObjectListAdapter.cs
- Rijndael.cs
- DataColumnMapping.cs
- SqlDataSourceCache.cs
- ApplicationServiceManager.cs
- ImageListDesigner.cs
- ConnectorMovedEventArgs.cs
- SubMenuStyle.cs
- QueryComponents.cs
- ProjectionCamera.cs
- StylusCollection.cs
- WindowsFont.cs
- ListCommandEventArgs.cs
- ParenthesizePropertyNameAttribute.cs
- BreakRecordTable.cs
- PropertySourceInfo.cs
- InternalDispatchObject.cs
- TextEffectResolver.cs
- RenderData.cs
- DeviceContexts.cs
- odbcmetadatafactory.cs
- DataObject.cs
- ColorAnimation.cs
- ModifierKeysConverter.cs
- ParserContext.cs