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
- GcHandle.cs
- CharEnumerator.cs
- SecurityTokenRequirement.cs
- SamlDelegatingWriter.cs
- ManipulationLogic.cs
- DataFieldConverter.cs
- PenCursorManager.cs
- SkewTransform.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- WasAdminWrapper.cs
- CompilerResults.cs
- HMACSHA384.cs
- TableNameAttribute.cs
- Identity.cs
- ContactManager.cs
- WebEventTraceProvider.cs
- DynamicILGenerator.cs
- autovalidator.cs
- OlePropertyStructs.cs
- FileInfo.cs
- TextHidden.cs
- CompilerLocalReference.cs
- ContentPathSegment.cs
- XPathPatternBuilder.cs
- SvcMapFile.cs
- AddingNewEventArgs.cs
- PolyLineSegmentFigureLogic.cs
- TextRange.cs
- StructuralObject.cs
- BookmarkInfo.cs
- RecognizedPhrase.cs
- WinEventHandler.cs
- AutomationPatternInfo.cs
- StrongNameUtility.cs
- PageAdapter.cs
- ReadOnlyTernaryTree.cs
- LocalizationComments.cs
- RectangleConverter.cs
- URI.cs
- ListViewDeletedEventArgs.cs
- ListBoxItem.cs
- x509utils.cs
- ProcessHostFactoryHelper.cs
- UnsafeNativeMethods.cs
- EncoderNLS.cs
- XmlILOptimizerVisitor.cs
- CompiledELinqQueryState.cs
- SynchronizedReadOnlyCollection.cs
- PropertyValueChangedEvent.cs
- ConstructorNeedsTagAttribute.cs
- StateManagedCollection.cs
- XmlSchemaNotation.cs
- _SafeNetHandles.cs
- XmlSubtreeReader.cs
- BookmarkWorkItem.cs
- RegexNode.cs
- Merger.cs
- TextServicesCompartmentEventSink.cs
- CookieProtection.cs
- PrintPreviewGraphics.cs
- ColorDialog.cs
- TypeExtensionConverter.cs
- DataObjectSettingDataEventArgs.cs
- DataGrid.cs
- ComplexObject.cs
- ManifestSignatureInformation.cs
- MarkupCompilePass1.cs
- PermissionSet.cs
- GlyphingCache.cs
- ResolveNameEventArgs.cs
- WebPartDescriptionCollection.cs
- HeaderLabel.cs
- WpfPayload.cs
- WebHttpBindingElement.cs
- TextServicesCompartmentEventSink.cs
- IdnMapping.cs
- SpoolingTask.cs
- WindowsSysHeader.cs
- CatalogPartChrome.cs
- ISSmlParser.cs
- InterleavedZipPartStream.cs
- Documentation.cs
- OleDbRowUpdatedEvent.cs
- FrameworkContentElementAutomationPeer.cs
- CultureTable.cs
- MenuItemCollection.cs
- InputMethod.cs
- Image.cs
- DirectoryNotFoundException.cs
- AmbientValueAttribute.cs
- WasEndpointConfigContainer.cs
- PackageDigitalSignature.cs
- EncoderParameters.cs
- CombinedGeometry.cs
- TempFiles.cs
- HashLookup.cs
- PackageRelationship.cs
- FontInfo.cs
- SchemaAttDef.cs
- ProtocolsSection.cs