Code:
/ 4.0 / 4.0 / 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. /// ///// 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
- ButtonBase.cs
- ModelPropertyImpl.cs
- WorkflowServiceBehavior.cs
- SqlBulkCopyColumnMappingCollection.cs
- DataExpression.cs
- BitmapImage.cs
- RightsManagementEncryptedStream.cs
- DesignTimeParseData.cs
- TextEffect.cs
- StylusPoint.cs
- Point.cs
- DecoderExceptionFallback.cs
- DeadCharTextComposition.cs
- UnsafeNativeMethods.cs
- SelectedDatesCollection.cs
- SerializationFieldInfo.cs
- WebPartDescription.cs
- Size.cs
- PointF.cs
- HMACSHA256.cs
- FixedSOMTableRow.cs
- CodeMemberMethod.cs
- SecurityTokenException.cs
- OleDbPropertySetGuid.cs
- FormatConvertedBitmap.cs
- NullableDoubleAverageAggregationOperator.cs
- FileLevelControlBuilderAttribute.cs
- FormsAuthenticationConfiguration.cs
- InvokeProviderWrapper.cs
- LookupNode.cs
- ProviderUtil.cs
- TransformerConfigurationWizardBase.cs
- SafeRegistryHandle.cs
- DataGridViewCellEventArgs.cs
- ToolStripRenderEventArgs.cs
- BinaryWriter.cs
- LocatorBase.cs
- ServiceAuthorizationManager.cs
- login.cs
- ParseNumbers.cs
- HandlerBase.cs
- WorkflowInstanceSuspendedRecord.cs
- DesignerEventService.cs
- MediaEntryAttribute.cs
- PersonalizationStateInfo.cs
- WebSysDefaultValueAttribute.cs
- EdgeModeValidation.cs
- XmlSerializerFactory.cs
- TextServicesManager.cs
- DisplayNameAttribute.cs
- AutoSizeToolBoxItem.cs
- RequestCachePolicy.cs
- ScriptControlDescriptor.cs
- ContentOnlyMessage.cs
- ModelPerspective.cs
- OleDbSchemaGuid.cs
- BitmapMetadata.cs
- RoutedEventValueSerializer.cs
- RelationHandler.cs
- TableRow.cs
- RuleInfoComparer.cs
- SharedHttpsTransportManager.cs
- JsonReader.cs
- SimpleBitVector32.cs
- SynchronizedPool.cs
- Aggregates.cs
- ContentFileHelper.cs
- PasswordBox.cs
- HttpRawResponse.cs
- SqlClientPermission.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DataFormats.cs
- ImageSource.cs
- ParameterReplacerVisitor.cs
- AttributeAction.cs
- DispatcherEventArgs.cs
- RangeBase.cs
- DecimalConverter.cs
- ProfileParameter.cs
- PerformanceCounter.cs
- ValueUtilsSmi.cs
- ToolStripDropDown.cs
- Utils.cs
- CodeVariableReferenceExpression.cs
- RawStylusInputReport.cs
- ProjectionCamera.cs
- DataGridViewToolTip.cs
- Selector.cs
- BulletedListEventArgs.cs
- dbdatarecord.cs
- UIElementIsland.cs
- HtmlTextArea.cs
- RecipientInfo.cs
- CorrelationService.cs
- AbstractDataSvcMapFileLoader.cs
- SystemColorTracker.cs
- XhtmlBasicLinkAdapter.cs
- ExpressionBuilderContext.cs
- XmlQueryStaticData.cs
- PersonalizationProviderCollection.cs