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
- ApplicationFileParser.cs
- ComponentCommands.cs
- ListViewEditEventArgs.cs
- DoubleUtil.cs
- AssemblyResolver.cs
- ClipboardProcessor.cs
- KeyGesture.cs
- ButtonBaseAdapter.cs
- CodeLinePragma.cs
- HtmlLink.cs
- Formatter.cs
- ScrollChrome.cs
- XPathArrayIterator.cs
- ObjectCloneHelper.cs
- GenericAuthenticationEventArgs.cs
- ChangePassword.cs
- Compensation.cs
- WebEvents.cs
- Vector3DCollectionValueSerializer.cs
- Misc.cs
- Exception.cs
- ElapsedEventArgs.cs
- DrawListViewColumnHeaderEventArgs.cs
- RawUIStateInputReport.cs
- AutomationAttributeInfo.cs
- smtpconnection.cs
- ObjectRef.cs
- Signature.cs
- FileNotFoundException.cs
- TimeSpanMinutesConverter.cs
- ComEventsSink.cs
- XmlLinkedNode.cs
- CodePageUtils.cs
- Int64.cs
- SqlFactory.cs
- XmlNodeReader.cs
- StylusCaptureWithinProperty.cs
- MimeAnyImporter.cs
- WindowVisualStateTracker.cs
- TypeNameParser.cs
- ExpandedWrapper.cs
- QueryCacheEntry.cs
- MimeTypePropertyAttribute.cs
- EditorZoneBase.cs
- FixedTextSelectionProcessor.cs
- SmiConnection.cs
- EntityViewContainer.cs
- DbConnectionPoolCounters.cs
- CodeCommentStatementCollection.cs
- BamlReader.cs
- XmlDictionaryWriter.cs
- VariableModifiersHelper.cs
- TagPrefixCollection.cs
- VirtualPathData.cs
- CustomWebEventKey.cs
- ServiceReference.cs
- DesignerAttributeInfo.cs
- DesignerMetadata.cs
- CssTextWriter.cs
- WasHttpModulesInstallComponent.cs
- BehaviorEditorPart.cs
- FormatSettings.cs
- SharedPersonalizationStateInfo.cs
- TCEAdapterGenerator.cs
- Size3D.cs
- bindurihelper.cs
- ValueHandle.cs
- CertificateManager.cs
- JpegBitmapEncoder.cs
- Root.cs
- DbProviderFactories.cs
- ProxyWebPart.cs
- WorkflowTransactionService.cs
- WinFormsSpinner.cs
- ButtonStandardAdapter.cs
- DiagnosticsElement.cs
- StreamResourceInfo.cs
- MultiSelectRootGridEntry.cs
- RawMouseInputReport.cs
- EarlyBoundInfo.cs
- ExtensionElement.cs
- TemplatedMailWebEventProvider.cs
- MessageSmuggler.cs
- TypographyProperties.cs
- OpenFileDialog.cs
- DiagnosticTraceSource.cs
- SqlCacheDependency.cs
- LinkConverter.cs
- DataObjectMethodAttribute.cs
- SiteMapPath.cs
- AssociationSetEnd.cs
- TrustSection.cs
- AnnotationComponentManager.cs
- DrawingAttributes.cs
- MultiAsyncResult.cs
- SharedConnectionWorkflowTransactionService.cs
- WindowsSysHeader.cs
- ThemeDirectoryCompiler.cs
- OleDbInfoMessageEvent.cs
- CodeStatementCollection.cs