Code:
/ 4.0 / 4.0 / untmp / 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. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PeerChannelListener.cs
- WebPartTransformerCollection.cs
- ObjectViewFactory.cs
- MediaPlayer.cs
- LoginUtil.cs
- TemplateColumn.cs
- AppDomainUnloadedException.cs
- AutoResetEvent.cs
- NewExpression.cs
- TextBox.cs
- CharConverter.cs
- SizeFConverter.cs
- Bold.cs
- ReadOnlyDataSource.cs
- _AutoWebProxyScriptEngine.cs
- RegexGroupCollection.cs
- Transform3DGroup.cs
- OleDbSchemaGuid.cs
- HelpProvider.cs
- ConcurrentDictionary.cs
- BaseUriHelper.cs
- IssuedTokensHeader.cs
- UIPermission.cs
- ConnectionProviderAttribute.cs
- TextDecorationCollection.cs
- CancellationTokenSource.cs
- SolidBrush.cs
- PackageStore.cs
- BamlLocalizer.cs
- InternalPolicyElement.cs
- CngKey.cs
- DataColumnCollection.cs
- StatusBarItem.cs
- XDeferredAxisSource.cs
- HtmlControlPersistable.cs
- ListSortDescriptionCollection.cs
- WhiteSpaceTrimStringConverter.cs
- ButtonChrome.cs
- SQLMoneyStorage.cs
- Interop.cs
- ClientSession.cs
- XmlEncoding.cs
- PageContentCollection.cs
- TreeNodeMouseHoverEvent.cs
- Part.cs
- XmlEntityReference.cs
- AppSettingsExpressionEditor.cs
- PersistNameAttribute.cs
- UTF8Encoding.cs
- MenuEventArgs.cs
- ColorAnimationUsingKeyFrames.cs
- TemplateLookupAction.cs
- StandardToolWindows.cs
- ClientSection.cs
- TypeUnloadedException.cs
- RemoteWebConfigurationHost.cs
- ContractTypeNameElement.cs
- SerializationFieldInfo.cs
- XmlSerializationReader.cs
- commandenforcer.cs
- InheritanceContextHelper.cs
- TimeSpanStorage.cs
- ComMethodElement.cs
- WindowExtensionMethods.cs
- PriorityQueue.cs
- InputLanguage.cs
- DuplicateDetector.cs
- UiaCoreTypesApi.cs
- EditorAttributeInfo.cs
- Configuration.cs
- ErrorHandler.cs
- ProxyWebPartManager.cs
- HyperLinkField.cs
- DesigntimeLicenseContextSerializer.cs
- _UncName.cs
- EntityDataSourceViewSchema.cs
- ChangeProcessor.cs
- ClientOptions.cs
- versioninfo.cs
- DataGrid.cs
- DisableDpiAwarenessAttribute.cs
- TextServicesCompartmentContext.cs
- OdbcConnectionFactory.cs
- PointAnimationClockResource.cs
- KeyPullup.cs
- DataFormat.cs
- XPathBinder.cs
- TextCompositionEventArgs.cs
- SqlProviderManifest.cs
- MethodBuilderInstantiation.cs
- MultiPageTextView.cs
- Icon.cs
- TypeInitializationException.cs
- MonthChangedEventArgs.cs
- HttpEncoderUtility.cs
- GlobalizationAssembly.cs
- Base64Stream.cs
- BinarySerializer.cs
- RowUpdatedEventArgs.cs
- PointLight.cs