Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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. // Copyright (c) Microsoft Corporation. All rights reserved./// Specifies the last position /// within the /// scroll bar. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ViewStateChangedEventArgs.cs
- UmAlQuraCalendar.cs
- XmlSchemaObject.cs
- FontWeight.cs
- HybridWebProxyFinder.cs
- TextServicesPropertyRanges.cs
- SyntaxCheck.cs
- OutputCacheSettings.cs
- SvcMapFileSerializer.cs
- MouseActionConverter.cs
- ToolConsole.cs
- SqlNodeAnnotation.cs
- HtmlGenericControl.cs
- CodeValidator.cs
- Root.cs
- PerformanceCounterPermissionEntryCollection.cs
- SQLMembershipProvider.cs
- ToolStripItemClickedEventArgs.cs
- OleDbSchemaGuid.cs
- AsynchronousChannel.cs
- XPathNodeIterator.cs
- SqlCacheDependencySection.cs
- StyleCollection.cs
- FieldToken.cs
- ProgressiveCrcCalculatingStream.cs
- PeerName.cs
- _HeaderInfoTable.cs
- ResourceSet.cs
- TextMarkerSource.cs
- XmlChildEnumerator.cs
- SimplePropertyEntry.cs
- XamlInt32CollectionSerializer.cs
- StrongNameMembershipCondition.cs
- CompiledAction.cs
- ArglessEventHandlerProxy.cs
- HtmlShimManager.cs
- TransformValueSerializer.cs
- StringSource.cs
- COM2IDispatchConverter.cs
- InfoCardCryptoHelper.cs
- PerformanceCounterCategory.cs
- ServiceDiscoveryElement.cs
- BamlReader.cs
- Line.cs
- ZoneButton.cs
- WebDescriptionAttribute.cs
- StreamInfo.cs
- EditorServiceContext.cs
- DllNotFoundException.cs
- DataGridRowHeader.cs
- SoapIgnoreAttribute.cs
- Validator.cs
- BehaviorService.cs
- TripleDESCryptoServiceProvider.cs
- _NegoState.cs
- DrawingContextDrawingContextWalker.cs
- CallContext.cs
- TextEditorThreadLocalStore.cs
- CodeTypeDeclaration.cs
- ChtmlTextWriter.cs
- IntSecurity.cs
- XmlSortKeyAccumulator.cs
- ValidationService.cs
- OperationInfo.cs
- TransmissionStrategy.cs
- TextSelectionHighlightLayer.cs
- AssemblyContextControlItem.cs
- TypeElement.cs
- CursorEditor.cs
- MarkupProperty.cs
- CrossContextChannel.cs
- ModifierKeysConverter.cs
- PerformanceCounterPermissionAttribute.cs
- InkCollectionBehavior.cs
- AuthenticationConfig.cs
- CodeCastExpression.cs
- ToolStrip.cs
- Group.cs
- DelegateBodyWriter.cs
- TimeSpan.cs
- LineServices.cs
- GetLedgerRequest.cs
- CategoryNameCollection.cs
- MenuRendererClassic.cs
- WebPartAuthorizationEventArgs.cs
- ErrorsHelper.cs
- FunctionQuery.cs
- TdsParserSessionPool.cs
- JobCollate.cs
- TreeNodeSelectionProcessor.cs
- DataGridViewDataConnection.cs
- OptimizerPatterns.cs
- Matrix3D.cs
- XmlSchemaChoice.cs
- ZipIOExtraFieldZip64Element.cs
- ContextMenu.cs
- Image.cs
- KnownBoxes.cs
- QuaternionConverter.cs
- IArgumentProvider.cs