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
- ErrorFormatterPage.cs
- CacheSection.cs
- ProviderConnectionPoint.cs
- HtmlInputReset.cs
- RowUpdatingEventArgs.cs
- HttpConfigurationContext.cs
- PngBitmapDecoder.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Bold.cs
- METAHEADER.cs
- XamlBuildTaskServices.cs
- elementinformation.cs
- ActivityXamlServices.cs
- StrokeCollection2.cs
- TextRenderer.cs
- DataGridCell.cs
- DataSetFieldSchema.cs
- NegotiateStream.cs
- XmlImplementation.cs
- XmlAttributeProperties.cs
- UxThemeWrapper.cs
- InvalidCommandTreeException.cs
- ErrorHandler.cs
- ServiceHostingEnvironment.cs
- Panel.cs
- CompiledRegexRunner.cs
- shaperfactory.cs
- ValidatingPropertiesEventArgs.cs
- Walker.cs
- WebPartConnectionsDisconnectVerb.cs
- DataMemberListEditor.cs
- OleDbPermission.cs
- PermissionAttributes.cs
- Pair.cs
- SpotLight.cs
- Panel.cs
- ConfigurationLocation.cs
- COM2PropertyBuilderUITypeEditor.cs
- EntityDataSourceUtil.cs
- FileChangesMonitor.cs
- Peer.cs
- ContentDisposition.cs
- TemplatingOptionsDialog.cs
- TypeNameParser.cs
- DrawingContextDrawingContextWalker.cs
- HtmlElementCollection.cs
- RangeValueProviderWrapper.cs
- AuthenticationModulesSection.cs
- Overlapped.cs
- BaseTemplateBuildProvider.cs
- MobileErrorInfo.cs
- ZipIOLocalFileHeader.cs
- WSHttpBinding.cs
- Activator.cs
- TableHeaderCell.cs
- HttpCacheParams.cs
- EventRouteFactory.cs
- WindowsScroll.cs
- SpecularMaterial.cs
- PassportAuthenticationEventArgs.cs
- Int16.cs
- DataRelationCollection.cs
- SqlNamer.cs
- WorkflowElementDialog.cs
- StateManagedCollection.cs
- coordinatorfactory.cs
- XmlMtomWriter.cs
- CompilerGlobalScopeAttribute.cs
- Application.cs
- TrustManagerMoreInformation.cs
- DebuggerAttributes.cs
- AffineTransform3D.cs
- ConfigXmlCDataSection.cs
- FlowDocumentFormatter.cs
- XmlEntityReference.cs
- TemplateBamlTreeBuilder.cs
- PropertiesTab.cs
- FileDialogPermission.cs
- AuthenticatingEventArgs.cs
- SafeNativeMethodsMilCoreApi.cs
- ContractAdapter.cs
- cryptoapiTransform.cs
- VBCodeProvider.cs
- EventSinkHelperWriter.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- GenericEnumConverter.cs
- EasingKeyFrames.cs
- LogWriteRestartAreaAsyncResult.cs
- AnnotationObservableCollection.cs
- XmlSchemaComplexContentExtension.cs
- EnvelopedSignatureTransform.cs
- WindowsClientElement.cs
- AppearanceEditorPart.cs
- ToggleProviderWrapper.cs
- DbDataSourceEnumerator.cs
- XmlCDATASection.cs
- XsltFunctions.cs
- CodeTypeConstructor.cs
- FixedPageProcessor.cs
- EntitySetBaseCollection.cs