Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / ScrollEvent.cs / 1305376 / ScrollEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class ScrollEventArgs : EventArgs { readonly ScrollEventType type; int newValue; private ScrollOrientation scrollOrientation; int oldValue = -1; ///Provides data for the ////// event. /// /// public ScrollEventArgs(ScrollEventType type, int newValue) { this.type = type; this.newValue = newValue; } ////// Initializes a new instance of the ///class. /// /// /// /// public ScrollEventArgs(ScrollEventType type, int newValue, ScrollOrientation scroll) { this.type = type; this.newValue = newValue; this.scrollOrientation = scroll; } ////// Initializes a new instance of the ///class. /// /// public ScrollEventArgs(ScrollEventType type, int oldValue, int newValue) { this.type = type; this.newValue = newValue; this.oldValue = oldValue; } /// public ScrollEventArgs(ScrollEventType type, int oldValue, int newValue, ScrollOrientation scroll) { this.type = type; this.newValue = newValue; this.scrollOrientation = scroll; this.oldValue = oldValue; } /// /// /// public ScrollOrientation ScrollOrientation { get { return scrollOrientation; } } ////// Specifies the type of scroll event that occurred. /// /// ////// /// public ScrollEventType Type { get { return type; } } ////// Specifies the type of scroll event that occurred. /// /// ////// /// public int NewValue { get { return newValue; } set { newValue = value; } } ////// Specifies the new location of the scroll box /// within the /// scroll bar. /// /// ////// /// public int OldValue { get { return oldValue; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the last position /// within the /// scroll bar. /// ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; ////// /// [System.Runtime.InteropServices.ComVisible(true)] public class ScrollEventArgs : EventArgs { readonly ScrollEventType type; int newValue; private ScrollOrientation scrollOrientation; int oldValue = -1; ///Provides data for the ////// event. /// /// public ScrollEventArgs(ScrollEventType type, int newValue) { this.type = type; this.newValue = newValue; } ////// Initializes a new instance of the ///class. /// /// /// /// public ScrollEventArgs(ScrollEventType type, int newValue, ScrollOrientation scroll) { this.type = type; this.newValue = newValue; this.scrollOrientation = scroll; } ////// Initializes a new instance of the ///class. /// /// public ScrollEventArgs(ScrollEventType type, int oldValue, int newValue) { this.type = type; this.newValue = newValue; this.oldValue = oldValue; } /// public ScrollEventArgs(ScrollEventType type, int oldValue, int newValue, ScrollOrientation scroll) { this.type = type; this.newValue = newValue; this.scrollOrientation = scroll; this.oldValue = oldValue; } /// /// /// public ScrollOrientation ScrollOrientation { get { return scrollOrientation; } } ////// Specifies the type of scroll event that occurred. /// /// ////// /// public ScrollEventType Type { get { return type; } } ////// Specifies the type of scroll event that occurred. /// /// ////// /// public int NewValue { get { return newValue; } set { newValue = value; } } ////// Specifies the new location of the scroll box /// within the /// scroll bar. /// /// ////// /// public int OldValue { get { return oldValue; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Specifies the last position /// within the /// scroll bar. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataBoundControl.cs
- TextPointerBase.cs
- DocumentsTrace.cs
- DrawingVisualDrawingContext.cs
- LocalIdCollection.cs
- webclient.cs
- InertiaTranslationBehavior.cs
- MeasureItemEvent.cs
- PickBranch.cs
- DragDeltaEventArgs.cs
- Message.cs
- Profiler.cs
- CollectionsUtil.cs
- OdbcEnvironment.cs
- ImportCatalogPart.cs
- GeometryModel3D.cs
- ButtonChrome.cs
- SystemNetHelpers.cs
- PageStatePersister.cs
- SchemaComplexType.cs
- CompositeActivityValidator.cs
- ActionFrame.cs
- MSAAWinEventWrap.cs
- CodeExpressionStatement.cs
- PersonalizationEntry.cs
- SAPIEngineTypes.cs
- SQLRoleProvider.cs
- QilInvokeLateBound.cs
- RegexNode.cs
- ReadOnlyAttribute.cs
- ErrorEventArgs.cs
- XmlLoader.cs
- XmlQualifiedName.cs
- NonVisualControlAttribute.cs
- ListViewEditEventArgs.cs
- WorkflowMessageEventHandler.cs
- SymLanguageType.cs
- SystemDropShadowChrome.cs
- HebrewNumber.cs
- XmlDataCollection.cs
- MimeTypeMapper.cs
- StringSorter.cs
- HttpWebResponse.cs
- UseManagedPresentationElement.cs
- ToolBarTray.cs
- XPathNavigatorReader.cs
- ResourceAssociationSet.cs
- ThreadStaticAttribute.cs
- AnimatedTypeHelpers.cs
- GatewayIPAddressInformationCollection.cs
- GenericArgumentsUpdater.cs
- Input.cs
- SiteOfOriginContainer.cs
- Int32KeyFrameCollection.cs
- ByteStreamMessageEncodingElement.cs
- Grammar.cs
- BulletedListEventArgs.cs
- Point3DConverter.cs
- NetworkInformationException.cs
- JournalEntryListConverter.cs
- LinqDataView.cs
- WindowsAuthenticationModule.cs
- Group.cs
- InvalidCommandTreeException.cs
- DBCommandBuilder.cs
- ToolboxCategory.cs
- MeasureItemEvent.cs
- ConfigurationManagerHelper.cs
- ServiceContractGenerationContext.cs
- CodeSnippetExpression.cs
- smtppermission.cs
- SmtpMail.cs
- HtmlEmptyTagControlBuilder.cs
- StylusPointPropertyUnit.cs
- PieceDirectory.cs
- shaperfactory.cs
- InitiatorSessionSymmetricTransportSecurityProtocol.cs
- PointLightBase.cs
- AcceleratedTokenProviderState.cs
- CodeLinePragma.cs
- GeneralTransform2DTo3DTo2D.cs
- PluralizationService.cs
- WorkflowInvoker.cs
- HtmlHead.cs
- RichTextBoxAutomationPeer.cs
- Config.cs
- FullTrustAssembliesSection.cs
- ConnectionStringSettingsCollection.cs
- base64Transforms.cs
- EntityClassGenerator.cs
- FixedDocumentPaginator.cs
- ChangeNode.cs
- TypeNameConverter.cs
- TextTreeUndo.cs
- WindowsScroll.cs
- DBConcurrencyException.cs
- DataListItemCollection.cs
- ResizeBehavior.cs
- XmlDomTextWriter.cs
- FilterQueryOptionExpression.cs