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
- MinMaxParagraphWidth.cs
- Pair.cs
- ProcessStartInfo.cs
- HostingEnvironmentWrapper.cs
- ServiceOperationParameter.cs
- EntryWrittenEventArgs.cs
- BitmapEffectInputData.cs
- ValidatorAttribute.cs
- ImportCatalogPart.cs
- XsltLoader.cs
- HitTestWithPointDrawingContextWalker.cs
- TextMarkerSource.cs
- RouteValueDictionary.cs
- X500Name.cs
- Rotation3D.cs
- EditorZoneAutoFormat.cs
- TrackingProfile.cs
- ImageBrush.cs
- DiagnosticSection.cs
- TemplateControlCodeDomTreeGenerator.cs
- FastPropertyAccessor.cs
- DataGridRelationshipRow.cs
- PropertyGridEditorPart.cs
- DbCommandDefinition.cs
- ClientScriptManagerWrapper.cs
- DataTableExtensions.cs
- TextEditorThreadLocalStore.cs
- OdbcConnectionPoolProviderInfo.cs
- ApplicationFileParser.cs
- ImageIndexConverter.cs
- VersionedStream.cs
- MeshGeometry3D.cs
- BookmarkEventArgs.cs
- XmlIgnoreAttribute.cs
- ConditionValidator.cs
- XmlQualifiedName.cs
- XmlEnumAttribute.cs
- TraceSection.cs
- SkewTransform.cs
- PermissionSetEnumerator.cs
- WsatTransactionInfo.cs
- SQLInt32.cs
- PartialTrustHelpers.cs
- AsmxEndpointPickerExtension.cs
- WizardSideBarListControlItem.cs
- Cursors.cs
- TextBounds.cs
- ByeOperation11AsyncResult.cs
- SpecialNameAttribute.cs
- Ticks.cs
- SQLByteStorage.cs
- IsolatedStorageFile.cs
- designeractionbehavior.cs
- WindowsSysHeader.cs
- TcpDuplicateContext.cs
- EnumBuilder.cs
- ObjectParameter.cs
- AlternateView.cs
- DrawingState.cs
- Inline.cs
- XmlSchemaRedefine.cs
- DataTable.cs
- ToolStripMenuItem.cs
- PointLightBase.cs
- ParameterCollection.cs
- Utils.cs
- Inflater.cs
- odbcmetadatacollectionnames.cs
- ButtonBase.cs
- Thumb.cs
- DefaultBinder.cs
- SettingsPropertyWrongTypeException.cs
- SerializationFieldInfo.cs
- IisTraceListener.cs
- ColumnTypeConverter.cs
- StreamAsIStream.cs
- TablePattern.cs
- SerializationFieldInfo.cs
- CompilationUnit.cs
- ByeOperationCD1AsyncResult.cs
- FileSecurity.cs
- PublishLicense.cs
- BookmarkScopeManager.cs
- Interfaces.cs
- ImageBrush.cs
- SpellerInterop.cs
- StringBuilder.cs
- SessionParameter.cs
- COM2ExtendedUITypeEditor.cs
- WebBrowsableAttribute.cs
- Package.cs
- DecoratedNameAttribute.cs
- NameTable.cs
- ColorConvertedBitmap.cs
- DBConcurrencyException.cs
- Site.cs
- GridViewColumn.cs
- CustomGrammar.cs
- AddInControllerImpl.cs
- RefType.cs