Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ToolStripMenuItemDesigner.cs
- InvalidFilterCriteriaException.cs
- GrammarBuilder.cs
- XPathConvert.cs
- ToolStripItem.cs
- SecurityUtils.cs
- UserControl.cs
- AddInBase.cs
- MsiStyleLogWriter.cs
- PageAsyncTask.cs
- Timeline.cs
- TextTreeFixupNode.cs
- Transform3DCollection.cs
- ApplyImportsAction.cs
- GlyphRunDrawing.cs
- FileSystemEventArgs.cs
- DBSchemaTable.cs
- Model3DGroup.cs
- TypedTableGenerator.cs
- XmlBinaryReaderSession.cs
- TextTreePropertyUndoUnit.cs
- FindCompletedEventArgs.cs
- BitmapPalettes.cs
- ProcessHostServerConfig.cs
- UmAlQuraCalendar.cs
- VisualBasicImportReference.cs
- DocComment.cs
- InternalRelationshipCollection.cs
- Image.cs
- CompiledQueryCacheKey.cs
- IdnElement.cs
- Menu.cs
- ObjectManager.cs
- ExternalDataExchangeClient.cs
- LambdaCompiler.Expressions.cs
- DecoderBestFitFallback.cs
- QilStrConcatenator.cs
- NamedPipeChannelListener.cs
- KeyGestureConverter.cs
- DataObject.cs
- XmlArrayItemAttribute.cs
- SqlDataSourceStatusEventArgs.cs
- Vector3dCollection.cs
- ProcessHostConfigUtils.cs
- GradientStop.cs
- Vector3DConverter.cs
- XhtmlTextWriter.cs
- ExecutionEngineException.cs
- AssociationProvider.cs
- NextPreviousPagerField.cs
- DescriptionCreator.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- AssemblyHash.cs
- InstalledVoice.cs
- TdsParserHelperClasses.cs
- DelegateCompletionCallbackWrapper.cs
- RegistryPermission.cs
- WmfPlaceableFileHeader.cs
- _NegotiateClient.cs
- AttributeInfo.cs
- TextParagraphCache.cs
- TraceHandler.cs
- WebPartConnectionsDisconnectVerb.cs
- IdentityHolder.cs
- Separator.cs
- WebReferencesBuildProvider.cs
- BindableTemplateBuilder.cs
- CookieParameter.cs
- PointAnimationUsingKeyFrames.cs
- PanelDesigner.cs
- SafeEventLogWriteHandle.cs
- PermissionListSet.cs
- SqlWriter.cs
- HttpListenerPrefixCollection.cs
- SqlDataSourceCustomCommandEditor.cs
- Set.cs
- TreeView.cs
- XmlCountingReader.cs
- EntityContainerEntitySet.cs
- OleDbConnectionInternal.cs
- QueryActivatableWorkflowsCommand.cs
- NameTable.cs
- XmlSerializerOperationGenerator.cs
- XamlParser.cs
- AddInContractAttribute.cs
- TextEffect.cs
- CustomErrorsSection.cs
- NativeMethods.cs
- _HeaderInfoTable.cs
- SiteMapHierarchicalDataSourceView.cs
- XDeferredAxisSource.cs
- FrameworkReadOnlyPropertyMetadata.cs
- EventLog.cs
- Application.cs
- PropertyDescriptor.cs
- CmsInterop.cs
- TransformerConfigurationWizardBase.cs
- KeyTime.cs
- Adorner.cs
- ValidationPropertyAttribute.cs