Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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. // Copyright (c) Microsoft Corporation. All rights reserved./// Specifies the last position /// within the /// scroll bar. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BulletedListEventArgs.cs
- NeutralResourcesLanguageAttribute.cs
- UserControl.cs
- FlowDocumentPage.cs
- ImageAnimator.cs
- XmlSerializationReader.cs
- SerializationSectionGroup.cs
- SettingsProperty.cs
- TextProviderWrapper.cs
- UIElement3D.cs
- TouchesCapturedWithinProperty.cs
- AuthenticationException.cs
- ArrayTypeMismatchException.cs
- Int16AnimationBase.cs
- HostedImpersonationContext.cs
- FontSizeConverter.cs
- ConfigurationFileMap.cs
- VarRefManager.cs
- SrgsElementFactory.cs
- DesignTimeParseData.cs
- WebPartMenu.cs
- HybridDictionary.cs
- SHA256.cs
- ServiceChannelManager.cs
- BoundsDrawingContextWalker.cs
- StateItem.cs
- ReaderContextStackData.cs
- PackageRelationshipSelector.cs
- dataobject.cs
- ExternalException.cs
- AdCreatedEventArgs.cs
- TextElement.cs
- ResourceLoader.cs
- Int32RectValueSerializer.cs
- _NegoStream.cs
- ListViewInsertEventArgs.cs
- Condition.cs
- AppDomainUnloadedException.cs
- URLIdentityPermission.cs
- KeysConverter.cs
- DbConnectionStringCommon.cs
- Profiler.cs
- InputBuffer.cs
- SafeHandles.cs
- PageThemeCodeDomTreeGenerator.cs
- HttpRuntimeSection.cs
- PersonalizationDictionary.cs
- DiscoveryClientBindingElement.cs
- EventRouteFactory.cs
- ScriptMethodAttribute.cs
- WindowsImpersonationContext.cs
- StreamGeometry.cs
- TransactionContext.cs
- InvalidComObjectException.cs
- ConfigurationProperty.cs
- ListBoxItemWrapperAutomationPeer.cs
- SHA512Managed.cs
- ContentDisposition.cs
- BasicHttpMessageCredentialType.cs
- Triplet.cs
- ProcessHostServerConfig.cs
- ToolboxItemCollection.cs
- FrameworkTextComposition.cs
- XmlSchemaAttributeGroup.cs
- RSAProtectedConfigurationProvider.cs
- ParameterModifier.cs
- OutputCacheProfileCollection.cs
- WrappingXamlSchemaContext.cs
- ActivityCodeDomSerializer.cs
- UrlParameterReader.cs
- Facet.cs
- WebPartVerbCollection.cs
- SqlConnection.cs
- WebEventTraceProvider.cs
- WinInetCache.cs
- Debug.cs
- ReturnType.cs
- InlineObject.cs
- VirtualizedContainerService.cs
- Vector.cs
- IntranetCredentialPolicy.cs
- MatcherBuilder.cs
- GacUtil.cs
- ListViewEditEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- BindingExpressionUncommonField.cs
- ByteAnimationBase.cs
- XmlSerializerAssemblyAttribute.cs
- ThreadStaticAttribute.cs
- CellConstantDomain.cs
- DependencyPropertyValueSerializer.cs
- IIS7WorkerRequest.cs
- LogRecordSequence.cs
- ConfigurationLocationCollection.cs
- keycontainerpermission.cs
- TypeElementCollection.cs
- XdrBuilder.cs
- Regex.cs
- CodeCommentStatementCollection.cs
- uribuilder.cs