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
- HttpListener.cs
- Style.cs
- DecimalAnimation.cs
- LinqDataSourceUpdateEventArgs.cs
- TreeNode.cs
- TableCell.cs
- TextServicesCompartment.cs
- AnimationTimeline.cs
- PersistenceProviderFactory.cs
- LogicalMethodInfo.cs
- QilTernary.cs
- Simplifier.cs
- WriteableOnDemandPackagePart.cs
- LiteralControl.cs
- StringOutput.cs
- ReadOnlyCollection.cs
- MasterPageBuildProvider.cs
- LayoutInformation.cs
- EdmSchemaAttribute.cs
- HtmlTextArea.cs
- DataGridViewImageCell.cs
- ListSourceHelper.cs
- Effect.cs
- InvokePatternIdentifiers.cs
- SocketAddress.cs
- _CookieModule.cs
- SignatureDescription.cs
- WSSecurityXXX2005.cs
- FixedTextBuilder.cs
- XmlSchemaComplexContentRestriction.cs
- DbInsertCommandTree.cs
- ListBox.cs
- ItemType.cs
- TemplateBamlTreeBuilder.cs
- StructuralType.cs
- TextParagraphCache.cs
- SvcMapFile.cs
- ToolStripItemTextRenderEventArgs.cs
- LocalIdKeyIdentifierClause.cs
- Point3DValueSerializer.cs
- BaseParser.cs
- XmlNodeChangedEventManager.cs
- XmlQuerySequence.cs
- NodeInfo.cs
- TableColumn.cs
- x509utils.cs
- SizeAnimationBase.cs
- PropertyInformationCollection.cs
- GridItem.cs
- DependencyPropertyAttribute.cs
- PropertyInfo.cs
- PropertyValueUIItem.cs
- Nullable.cs
- MultiTrigger.cs
- EditingCoordinator.cs
- BuiltInExpr.cs
- BufferedReadStream.cs
- ConnectionPool.cs
- WeakReferenceList.cs
- BinaryObjectInfo.cs
- EntityWrapperFactory.cs
- WebPartDescriptionCollection.cs
- XmlSchemaType.cs
- StatusBarPanelClickEvent.cs
- SerialPinChanges.cs
- Drawing.cs
- ByeMessage11.cs
- DesignerTransactionCloseEvent.cs
- WeakRefEnumerator.cs
- OracleCommandBuilder.cs
- SocketAddress.cs
- SelfIssuedAuthProofToken.cs
- ProfileManager.cs
- HScrollProperties.cs
- ProgressiveCrcCalculatingStream.cs
- SessionStateModule.cs
- ProcessInputEventArgs.cs
- EndpointDispatcher.cs
- UInt64Storage.cs
- GetWinFXPath.cs
- UmAlQuraCalendar.cs
- ObsoleteAttribute.cs
- Vector3DAnimation.cs
- MediaScriptCommandRoutedEventArgs.cs
- DoubleUtil.cs
- RangeValuePattern.cs
- PrtTicket_Editor.cs
- InvokePattern.cs
- DataGridCellEditEndingEventArgs.cs
- SeparatorAutomationPeer.cs
- TimeZone.cs
- ReferenceSchema.cs
- CqlErrorHelper.cs
- BitmapEffectRenderDataResource.cs
- DescendantBaseQuery.cs
- DiscoveryClientProtocol.cs
- SqlPersistenceProviderFactory.cs
- Main.cs
- PrivilegedConfigurationManager.cs
- unsafenativemethodstextservices.cs