Code:
/ DotNET / DotNET / 8.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
- RuntimeHelpers.cs
- TagMapCollection.cs
- Attributes.cs
- ServiceHostingEnvironmentSection.cs
- CodeGenerator.cs
- EditorPartCollection.cs
- OutputCacheSettings.cs
- WeakReferenceKey.cs
- SoapSchemaMember.cs
- ComponentDispatcherThread.cs
- IUnknownConstantAttribute.cs
- SecurityTokenException.cs
- BaseParaClient.cs
- MessageBodyDescription.cs
- SelectionProcessor.cs
- ListSurrogate.cs
- PeerNameRecordCollection.cs
- RenderTargetBitmap.cs
- OdbcConnectionHandle.cs
- RegexBoyerMoore.cs
- PanelStyle.cs
- ReadOnlyDictionary.cs
- DynamicEndpoint.cs
- AspNetSynchronizationContext.cs
- StrokeCollectionDefaultValueFactory.cs
- FormParameter.cs
- SourceItem.cs
- RequestDescription.cs
- TextTreeUndo.cs
- NameValueFileSectionHandler.cs
- SecurityContext.cs
- HttpProcessUtility.cs
- ConfigurationStrings.cs
- HttpConfigurationContext.cs
- OraclePermission.cs
- CLSCompliantAttribute.cs
- DataGrid.cs
- UrlMapping.cs
- SerializationEventsCache.cs
- _Events.cs
- XPathSingletonIterator.cs
- LogicalExpr.cs
- SchemaType.cs
- StreamWriter.cs
- ReturnValue.cs
- FixUpCollection.cs
- Pair.cs
- StatusBarAutomationPeer.cs
- BitmapPalettes.cs
- FormViewUpdateEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- XmlUTF8TextWriter.cs
- CurrencyWrapper.cs
- ConsoleCancelEventArgs.cs
- SourceChangedEventArgs.cs
- CallContext.cs
- LineServices.cs
- WebPartCloseVerb.cs
- InputEventArgs.cs
- FormClosedEvent.cs
- SQLDoubleStorage.cs
- List.cs
- GridViewRowCollection.cs
- BindingSource.cs
- FormsAuthenticationUser.cs
- ArcSegment.cs
- EventsTab.cs
- propertytag.cs
- FormatterServices.cs
- DataObject.cs
- Style.cs
- InputLanguageManager.cs
- InheritanceRules.cs
- ValidationEventArgs.cs
- BackEase.cs
- _AuthenticationState.cs
- TemplateColumn.cs
- TreeNodeMouseHoverEvent.cs
- URLIdentityPermission.cs
- DataRelationPropertyDescriptor.cs
- MarkupCompiler.cs
- DetailsViewPageEventArgs.cs
- XamlToRtfParser.cs
- SessionEndingEventArgs.cs
- VisemeEventArgs.cs
- FileUtil.cs
- ApplicationBuildProvider.cs
- Compensation.cs
- WpfKnownType.cs
- AddressingProperty.cs
- SQLStringStorage.cs
- MimeFormReflector.cs
- LOSFormatter.cs
- Timer.cs
- ParallelActivityDesigner.cs
- NumericPagerField.cs
- sqlcontext.cs
- StringResourceManager.cs
- WebSysDefaultValueAttribute.cs
- MetadataPropertyvalue.cs