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;
///
///
/// 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
- TextEditorLists.cs
- DataGridViewElement.cs
- Win32SafeHandles.cs
- DependencyObjectType.cs
- ListenerElementsCollection.cs
- KnownBoxes.cs
- _FixedSizeReader.cs
- CategoryNameCollection.cs
- SecurityHelper.cs
- ProviderConnectionPoint.cs
- AdornedElementPlaceholder.cs
- NamespaceEmitter.cs
- AttributeCollection.cs
- cache.cs
- XmlSchemaIdentityConstraint.cs
- AppDomainManager.cs
- LogArchiveSnapshot.cs
- CellParaClient.cs
- DropSource.cs
- WebCategoryAttribute.cs
- RTLAwareMessageBox.cs
- TextEditorParagraphs.cs
- AnimationClock.cs
- ButtonRenderer.cs
- xmlglyphRunInfo.cs
- NullReferenceException.cs
- FormClosedEvent.cs
- Pointer.cs
- LicenseManager.cs
- HTMLTagNameToTypeMapper.cs
- MarkerProperties.cs
- NativeStructs.cs
- IssuanceLicense.cs
- Visitors.cs
- MemberProjectedSlot.cs
- CmsUtils.cs
- InfiniteIntConverter.cs
- Model3DCollection.cs
- StickyNoteHelper.cs
- ElementsClipboardData.cs
- TransactionScopeDesigner.cs
- RightsManagementEncryptedStream.cs
- ComplexTypeEmitter.cs
- CompilerScopeManager.cs
- JsonByteArrayDataContract.cs
- ConfigurationStrings.cs
- SqlColumnizer.cs
- DbDataReader.cs
- ButtonBase.cs
- UpdateTranslator.cs
- TreeViewImageGenerator.cs
- MultiBindingExpression.cs
- ConfigXmlAttribute.cs
- RenderCapability.cs
- SharedConnectionWorkflowTransactionService.cs
- mansign.cs
- SqlDataReader.cs
- UInt32Converter.cs
- Fx.cs
- StrokeIntersection.cs
- CopyAttributesAction.cs
- DecimalFormatter.cs
- SerializableAttribute.cs
- dbenumerator.cs
- EdmFunctions.cs
- StringReader.cs
- HtmlInputCheckBox.cs
- DataGridParentRows.cs
- GridViewCancelEditEventArgs.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- MatrixIndependentAnimationStorage.cs
- XmlCharCheckingWriter.cs
- DataGridViewRowPrePaintEventArgs.cs
- RegistryPermission.cs
- CapabilitiesState.cs
- TextTabProperties.cs
- DocumentReference.cs
- ScrollEventArgs.cs
- PrintingPermission.cs
- FacetDescriptionElement.cs
- ServiceObjectContainer.cs
- PolicyValidationException.cs
- Mutex.cs
- Executor.cs
- ISessionStateStore.cs
- SqlCacheDependencyDatabase.cs
- RSAPKCS1KeyExchangeFormatter.cs
- PolyBezierSegmentFigureLogic.cs
- MembershipUser.cs
- MemberProjectionIndex.cs
- Point4D.cs
- DataSourceExpression.cs
- UnauthorizedWebPart.cs
- UtilityExtension.cs
- NativeCppClassAttribute.cs
- SystemFonts.cs
- MachineKeySection.cs
- COM2ComponentEditor.cs
- WeakReadOnlyCollection.cs
- KnownBoxes.cs