Code:
/ 4.0 / 4.0 / untmp / 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. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Rotation3DKeyFrameCollection.cs
- CompilationRelaxations.cs
- ScalarType.cs
- Int64Animation.cs
- AdapterDictionary.cs
- PrimitiveSchema.cs
- RuleInfoComparer.cs
- JournalEntryListConverter.cs
- ApplicationHost.cs
- OutputCacheModule.cs
- ContentPlaceHolder.cs
- VectorKeyFrameCollection.cs
- SiteMapDataSourceView.cs
- PagePropertiesChangingEventArgs.cs
- SynchronizedInputProviderWrapper.cs
- SessionEndingCancelEventArgs.cs
- FormatConvertedBitmap.cs
- PropertyGridEditorPart.cs
- StringReader.cs
- XmlTypeMapping.cs
- CodeDOMUtility.cs
- HotSpotCollection.cs
- XmlMtomWriter.cs
- AuthenticationModuleElement.cs
- BufferBuilder.cs
- MailDefinition.cs
- DateTimeOffset.cs
- PartManifestEntry.cs
- MenuItemCollection.cs
- XmlReaderSettings.cs
- UnmanagedMarshal.cs
- StateBag.cs
- MatrixCamera.cs
- UpdateRecord.cs
- HtmlTableRowCollection.cs
- DataTemplateKey.cs
- odbcmetadatafactory.cs
- WSDualHttpSecurityMode.cs
- HybridObjectCache.cs
- DefaultValueConverter.cs
- ValueHandle.cs
- TextBoxBase.cs
- FlatButtonAppearance.cs
- FormViewDeleteEventArgs.cs
- ToolStripDropDown.cs
- ThrowHelper.cs
- PathTooLongException.cs
- AttachInfo.cs
- GenerateScriptTypeAttribute.cs
- DbMetaDataColumnNames.cs
- SspiSecurityToken.cs
- XmlILStorageConverter.cs
- FontCacheUtil.cs
- DocumentPageViewAutomationPeer.cs
- AnnotationAuthorChangedEventArgs.cs
- MediaContextNotificationWindow.cs
- PeerService.cs
- QilNode.cs
- ControlAdapter.cs
- UserControl.cs
- Interlocked.cs
- ToolStripLabel.cs
- ServiceHostFactory.cs
- PartBasedPackageProperties.cs
- FunctionImportElement.cs
- UriTemplateDispatchFormatter.cs
- ModelPerspective.cs
- DataGridColumnsPage.cs
- ArrayList.cs
- Command.cs
- ApplicationGesture.cs
- CompositeKey.cs
- HttpContext.cs
- SeekableReadStream.cs
- ParallelDesigner.xaml.cs
- SubtreeProcessor.cs
- ColorTranslator.cs
- VisualProxy.cs
- ResourceSet.cs
- LifetimeServices.cs
- EventLogStatus.cs
- Regex.cs
- TimeoutException.cs
- FilteredDataSetHelper.cs
- OperationAbortedException.cs
- SessionPageStateSection.cs
- FontStretches.cs
- HwndStylusInputProvider.cs
- HtmlToClrEventProxy.cs
- DiscreteKeyFrames.cs
- PathSegmentCollection.cs
- ChangeTracker.cs
- Classification.cs
- CompressionTransform.cs
- ObfuscationAttribute.cs
- UserControlDocumentDesigner.cs
- LicenseProviderAttribute.cs
- DesignerSerializationVisibilityAttribute.cs
- CursorInteropHelper.cs
- QueryAccessibilityHelpEvent.cs