Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / ScrollEvent.cs / 1 / 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
- DesignerActionGlyph.cs
- DispatcherExceptionFilterEventArgs.cs
- CompilerLocalReference.cs
- PlanCompilerUtil.cs
- ExpressionBuilder.cs
- Application.cs
- XmlSchemaImporter.cs
- DeviceSpecificChoice.cs
- Wildcard.cs
- cookieexception.cs
- PathTooLongException.cs
- RelatedImageListAttribute.cs
- CmsUtils.cs
- TextModifierScope.cs
- TimelineClockCollection.cs
- ItemsPresenter.cs
- SessionIDManager.cs
- TrustManagerMoreInformation.cs
- ScriptComponentDescriptor.cs
- ObjectDataSourceView.cs
- SiteIdentityPermission.cs
- cache.cs
- WinFormsComponentEditor.cs
- CryptoConfig.cs
- BlockCollection.cs
- BookmarkUndoUnit.cs
- RegularExpressionValidator.cs
- TextClipboardData.cs
- IisTraceWebEventProvider.cs
- SQLMoney.cs
- AutoGeneratedFieldProperties.cs
- FileUtil.cs
- UITypeEditors.cs
- IpcServerChannel.cs
- ContentValidator.cs
- RelationshipNavigation.cs
- IdentityManager.cs
- ProviderBase.cs
- CipherData.cs
- FixedTextView.cs
- InvokeMethod.cs
- XmlSchemaSimpleContentExtension.cs
- DefaultAuthorizationContext.cs
- baseaxisquery.cs
- Serialization.cs
- InputBuffer.cs
- EndpointBehaviorElementCollection.cs
- GPRECTF.cs
- ApplicationTrust.cs
- DeobfuscatingStream.cs
- PreApplicationStartMethodAttribute.cs
- Cursor.cs
- DocumentSchemaValidator.cs
- _FtpDataStream.cs
- HtmlInputButton.cs
- QilName.cs
- DocumentViewerConstants.cs
- ISFTagAndGuidCache.cs
- BookmarkManager.cs
- sqlnorm.cs
- ConstraintManager.cs
- DrawingContext.cs
- TdsParserStateObject.cs
- OrderedDictionary.cs
- Control.cs
- LabelTarget.cs
- SimpleBitVector32.cs
- XmlSchemaAnnotated.cs
- bidPrivateBase.cs
- Compress.cs
- ShaderEffect.cs
- WebSysDisplayNameAttribute.cs
- CustomError.cs
- SourceFileBuildProvider.cs
- VisualProxy.cs
- RotateTransform3D.cs
- ConfigurationStrings.cs
- RotateTransform3D.cs
- FamilyTypeface.cs
- FixedTextContainer.cs
- TypedServiceChannelBuilder.cs
- RedistVersionInfo.cs
- TdsValueSetter.cs
- ProfileInfo.cs
- FileNotFoundException.cs
- ConnectionConsumerAttribute.cs
- WinEventQueueItem.cs
- HttpClientProtocol.cs
- WinEventQueueItem.cs
- EventMap.cs
- ClientRolePrincipal.cs
- ClientScriptManager.cs
- DoubleUtil.cs
- GlyphRun.cs
- SelectionHighlightInfo.cs
- DbParameterHelper.cs
- DeleteIndexBinder.cs
- AutomationProperty.cs
- SchemaName.cs
- SqlUDTStorage.cs