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
- XmlQueryCardinality.cs
- DataBoundControl.cs
- XPathChildIterator.cs
- ChangeInterceptorAttribute.cs
- TrackingServices.cs
- CodeTypeReference.cs
- DispatcherProcessingDisabled.cs
- tibetanshape.cs
- RegisteredDisposeScript.cs
- Double.cs
- FamilyCollection.cs
- LinqDataSourceStatusEventArgs.cs
- BmpBitmapDecoder.cs
- SessionViewState.cs
- ListSortDescriptionCollection.cs
- FontFamily.cs
- Size.cs
- Debugger.cs
- HttpUnhandledOperationInvoker.cs
- StylusSystemGestureEventArgs.cs
- ToolStripItemTextRenderEventArgs.cs
- Int64Converter.cs
- CodeDomSerializerBase.cs
- ScriptHandlerFactory.cs
- arclist.cs
- ConvertBinder.cs
- LinqDataSourceContextData.cs
- Module.cs
- BooleanAnimationUsingKeyFrames.cs
- TdsParserStaticMethods.cs
- RoleGroup.cs
- IdleTimeoutMonitor.cs
- Int64AnimationBase.cs
- ComAdminInterfaces.cs
- OraclePermission.cs
- ConsumerConnectionPoint.cs
- ListViewDeletedEventArgs.cs
- DataBoundControl.cs
- SafeRightsManagementQueryHandle.cs
- sqlmetadatafactory.cs
- DataGridTableCollection.cs
- HtmlInputButton.cs
- SHA256Cng.cs
- Row.cs
- ObjectQueryProvider.cs
- HtmlToClrEventProxy.cs
- InvokeDelegate.cs
- Behavior.cs
- CacheForPrimitiveTypes.cs
- EntityUtil.cs
- WmlObjectListAdapter.cs
- AttributeProviderAttribute.cs
- DataBindingCollectionConverter.cs
- CodeMemberProperty.cs
- ComponentResourceManager.cs
- DictionaryEntry.cs
- AssociatedControlConverter.cs
- TextBoxBase.cs
- MarshalDirectiveException.cs
- XmlSchemaImporter.cs
- ObjectSpanRewriter.cs
- WorkflowPageSetupDialog.cs
- DrawingCollection.cs
- ClientBuildManagerCallback.cs
- ReferenceAssemblyAttribute.cs
- XamlToRtfWriter.cs
- StatusCommandUI.cs
- BrowserDefinition.cs
- TemplatedMailWebEventProvider.cs
- DockingAttribute.cs
- PeerMessageDispatcher.cs
- ScriptMethodAttribute.cs
- BufferBuilder.cs
- XmlIgnoreAttribute.cs
- AssemblyHash.cs
- BuilderInfo.cs
- XamlWriter.cs
- ScriptIgnoreAttribute.cs
- LogRestartAreaEnumerator.cs
- WindowsClientCredential.cs
- FreeFormDragDropManager.cs
- SqlRetyper.cs
- LocalFileSettingsProvider.cs
- FlowDocumentView.cs
- PointLightBase.cs
- Literal.cs
- XmlQueryTypeFactory.cs
- ValidateNames.cs
- PersonalizationDictionary.cs
- CodeAssignStatement.cs
- TreeViewItem.cs
- StringToken.cs
- TypeLibConverter.cs
- Util.cs
- ParameterModifier.cs
- ItemCollection.cs
- NominalTypeEliminator.cs
- DispatcherObject.cs
- ACE.cs
- ListArgumentProvider.cs