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;
///
///
/// Provides data for the
/// event.
///
[System.Runtime.InteropServices.ComVisible(true)]
public class ScrollEventArgs : EventArgs {
readonly ScrollEventType type;
int newValue;
private ScrollOrientation scrollOrientation;
int oldValue = -1;
///
///
///
/// Initializes a new instance of the class.
///
///
///
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;
}
///
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;
}
///
///
///
/// Specifies the type of scroll event that occurred.
///
///
///
public ScrollOrientation ScrollOrientation {
get {
return scrollOrientation;
}
}
///
///
///
/// Specifies the type of scroll event that occurred.
///
///
///
public ScrollEventType Type {
get {
return type;
}
}
///
///
///
/// Specifies the new location of the scroll box
/// within the
/// scroll bar.
///
///
///
public int NewValue {
get {
return newValue;
}
set {
newValue = value;
}
}
///
///
///
/// Specifies the last position
/// within the
/// scroll bar.
///
///
public int OldValue {
get {
return oldValue;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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;
///
///
/// Provides data for the
/// event.
///
[System.Runtime.InteropServices.ComVisible(true)]
public class ScrollEventArgs : EventArgs {
readonly ScrollEventType type;
int newValue;
private ScrollOrientation scrollOrientation;
int oldValue = -1;
///
///
///
/// Initializes a new instance of the class.
///
///
///
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;
}
///
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;
}
///
///
///
/// Specifies the type of scroll event that occurred.
///
///
///
public ScrollOrientation ScrollOrientation {
get {
return scrollOrientation;
}
}
///
///
///
/// Specifies the type of scroll event that occurred.
///
///
///
public ScrollEventType Type {
get {
return type;
}
}
///
///
///
/// Specifies the new location of the scroll box
/// within the
/// scroll bar.
///
///
///
public int NewValue {
get {
return newValue;
}
set {
newValue = value;
}
}
///
///
///
/// Specifies the last position
/// within the
/// scroll bar.
///
///
public int OldValue {
get {
return oldValue;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InternalSafeNativeMethods.cs
- TextEditorTyping.cs
- SoapAttributeAttribute.cs
- ProcessModelSection.cs
- TextPointer.cs
- CodeDelegateCreateExpression.cs
- SplashScreenNativeMethods.cs
- LeftCellWrapper.cs
- ProviderBase.cs
- XmlUTF8TextReader.cs
- Selector.cs
- VerificationAttribute.cs
- SizeAnimationClockResource.cs
- QuinticEase.cs
- BuildProvidersCompiler.cs
- DataGridHeaderBorder.cs
- WsdlBuildProvider.cs
- FontResourceCache.cs
- RankException.cs
- RadialGradientBrush.cs
- Command.cs
- Light.cs
- ProfileProvider.cs
- RC2.cs
- XPathScanner.cs
- DataGridViewCellStateChangedEventArgs.cs
- DrawingVisualDrawingContext.cs
- PropertyItem.cs
- CalendarDay.cs
- Classification.cs
- TrackingMemoryStream.cs
- codemethodreferenceexpression.cs
- Expressions.cs
- Sentence.cs
- RelatedCurrencyManager.cs
- DataContractSerializerSection.cs
- XmlSchemaException.cs
- InvalidOperationException.cs
- CatalogPartCollection.cs
- XmlValueConverter.cs
- InternalBufferOverflowException.cs
- TimeoutValidationAttribute.cs
- DataIdProcessor.cs
- InputLanguageProfileNotifySink.cs
- SignedXml.cs
- WizardStepCollectionEditor.cs
- Selector.cs
- AssociatedControlConverter.cs
- NativeMethods.cs
- OciEnlistContext.cs
- MarginsConverter.cs
- RNGCryptoServiceProvider.cs
- OrderPreservingMergeHelper.cs
- PageThemeBuildProvider.cs
- ObjectDataSourceDisposingEventArgs.cs
- QilGenerator.cs
- ScriptControlDescriptor.cs
- TextTreeObjectNode.cs
- ExtendedProtectionPolicy.cs
- DBParameter.cs
- EncryptedPackageFilter.cs
- ExtentKey.cs
- InputMethodStateChangeEventArgs.cs
- OperandQuery.cs
- ErrorsHelper.cs
- BindingCollection.cs
- CompileXomlTask.cs
- Set.cs
- HandlerWithFactory.cs
- VariableQuery.cs
- DataGridTablesFactory.cs
- BulletChrome.cs
- RoleProviderPrincipal.cs
- DataRecordObjectView.cs
- CryptoApi.cs
- Stylesheet.cs
- StackBuilderSink.cs
- CompoundFileDeflateTransform.cs
- TimeoutException.cs
- PointAnimationBase.cs
- PrintDialog.cs
- HighlightComponent.cs
- RawKeyboardInputReport.cs
- WebPartEditorOkVerb.cs
- ConfigXmlSignificantWhitespace.cs
- ServiceObjectContainer.cs
- XmlDocumentType.cs
- FileNotFoundException.cs
- MetadataItem_Static.cs
- CheckBox.cs
- EditorPartCollection.cs
- RequestBringIntoViewEventArgs.cs
- GcSettings.cs
- ContainerActivationHelper.cs
- ReferenceEqualityComparer.cs
- ArglessEventHandlerProxy.cs
- SHA256.cs
- ListDictionaryInternal.cs
- ScriptIgnoreAttribute.cs
- UIServiceHelper.cs