Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- BulletChrome.cs
- ProgressBarHighlightConverter.cs
- UriExt.cs
- Assert.cs
- SafeFileMapViewHandle.cs
- GridViewSortEventArgs.cs
- NotificationContext.cs
- HtmlForm.cs
- GridViewRowPresenterBase.cs
- ProfileSettings.cs
- PauseStoryboard.cs
- BamlCollectionHolder.cs
- MouseGestureConverter.cs
- DataSourceExpression.cs
- FontFamily.cs
- LinqDataSourceDisposeEventArgs.cs
- LiteralControl.cs
- StringConverter.cs
- UnsupportedPolicyOptionsException.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SelfIssuedTokenFactoryCredential.cs
- SafeFileMappingHandle.cs
- COM2PictureConverter.cs
- HighContrastHelper.cs
- securitycriticaldataformultiplegetandset.cs
- ListBox.cs
- _HeaderInfo.cs
- ListViewInsertEventArgs.cs
- CompModSwitches.cs
- InternalConfigEventArgs.cs
- TextBoxLine.cs
- LicenseContext.cs
- Encoder.cs
- MessageEncoder.cs
- DataGridViewBand.cs
- ChannelManager.cs
- AuthenticateEventArgs.cs
- SqlDuplicator.cs
- ArgumentValueSerializer.cs
- ShapeTypeface.cs
- TrackingProfileManager.cs
- UrlEncodedParameterWriter.cs
- ReadOnlyDictionary.cs
- CollectionView.cs
- MappingItemCollection.cs
- EventRoute.cs
- SchemaNamespaceManager.cs
- DoubleLinkList.cs
- BinaryOperationBinder.cs
- AccessKeyManager.cs
- HttpProfileBase.cs
- DataGridViewComboBoxColumn.cs
- DataSourceControlBuilder.cs
- Document.cs
- HtmlInputImage.cs
- RegistryDataKey.cs
- ReadOnlyDictionary.cs
- String.cs
- XmlParserContext.cs
- LineServicesCallbacks.cs
- CornerRadius.cs
- CheckBoxPopupAdapter.cs
- Not.cs
- DataGridViewTextBoxCell.cs
- HashRepartitionStream.cs
- XmlWrappingWriter.cs
- ProcessModuleCollection.cs
- SqlNodeTypeOperators.cs
- UnsafeNativeMethods.cs
- DependencyPropertyChangedEventArgs.cs
- DataAdapter.cs
- IdentityManager.cs
- FormsAuthenticationEventArgs.cs
- ReadOnlyHierarchicalDataSource.cs
- JumpPath.cs
- PeerCollaborationPermission.cs
- Calendar.cs
- EdmSchemaAttribute.cs
- XPathDocumentIterator.cs
- AnimationTimeline.cs
- HiddenField.cs
- EditorPartChrome.cs
- ResourceSetExpression.cs
- StructuredTypeInfo.cs
- ViewStateModeByIdAttribute.cs
- ConditionalAttribute.cs
- TextBox.cs
- BamlLocalizabilityResolver.cs
- ServiceEndpoint.cs
- ToolStripPanel.cs
- infer.cs
- StatusBarDrawItemEvent.cs
- JapaneseCalendar.cs
- TextPattern.cs
- WebBrowserNavigatingEventHandler.cs
- nulltextnavigator.cs
- ModelUIElement3D.cs
- AncestorChangedEventArgs.cs
- DataObjectSettingDataEventArgs.cs
- ColorKeyFrameCollection.cs