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
- AddressAlreadyInUseException.cs
- XmlILIndex.cs
- HttpResponse.cs
- XmlReader.cs
- DesignTimeParseData.cs
- RijndaelManaged.cs
- SynchronizedRandom.cs
- TrustLevelCollection.cs
- XmlComment.cs
- BlobPersonalizationState.cs
- SapiInterop.cs
- XmlLinkedNode.cs
- WindowsSlider.cs
- GlobalDataBindingHandler.cs
- _WinHttpWebProxyDataBuilder.cs
- MissingSatelliteAssemblyException.cs
- CompilationUnit.cs
- Int32Storage.cs
- DbParameterHelper.cs
- NameGenerator.cs
- DescendantBaseQuery.cs
- CollectionChangeEventArgs.cs
- RectIndependentAnimationStorage.cs
- SqlMetaData.cs
- COM2ExtendedBrowsingHandler.cs
- DataGridViewElement.cs
- BamlMapTable.cs
- SessionSwitchEventArgs.cs
- DataServiceBehavior.cs
- OdbcErrorCollection.cs
- ping.cs
- ErrorRuntimeConfig.cs
- FrameworkTextComposition.cs
- XmlUtf8RawTextWriter.cs
- SelectionPattern.cs
- FileCodeGroup.cs
- MatrixTransform3D.cs
- MasterPageBuildProvider.cs
- MarkupProperty.cs
- HttpBrowserCapabilitiesWrapper.cs
- LinkConverter.cs
- FreezableCollection.cs
- AuthenticationService.cs
- Compiler.cs
- versioninfo.cs
- PlainXmlWriter.cs
- Menu.cs
- DiscoveryServiceExtension.cs
- Panel.cs
- ConvertBinder.cs
- Accessible.cs
- EntitySqlQueryBuilder.cs
- RefExpr.cs
- FilteredDataSetHelper.cs
- DateTimeHelper.cs
- Lease.cs
- BreakSafeBase.cs
- TimeSpanConverter.cs
- _KerberosClient.cs
- dtdvalidator.cs
- DoubleAnimationClockResource.cs
- FileDetails.cs
- Menu.cs
- TreeNodeSelectionProcessor.cs
- TableItemStyle.cs
- PeerSecurityManager.cs
- InvalidWMPVersionException.cs
- Parser.cs
- GreenMethods.cs
- ToolStripRenderer.cs
- MetadataArtifactLoaderComposite.cs
- Vector3DCollection.cs
- ColumnMapProcessor.cs
- TextParaLineResult.cs
- StorageMappingItemLoader.cs
- DbConnectionPool.cs
- StreamResourceInfo.cs
- UnhandledExceptionEventArgs.cs
- SingleSelectRootGridEntry.cs
- UpdateDelegates.Generated.cs
- TextBoxRenderer.cs
- ElementUtil.cs
- TypeDescriptionProviderAttribute.cs
- StreamedWorkflowDefinitionContext.cs
- CollectionsUtil.cs
- BamlRecordWriter.cs
- LineServicesCallbacks.cs
- ThicknessConverter.cs
- FileLevelControlBuilderAttribute.cs
- NullableDoubleAverageAggregationOperator.cs
- SparseMemoryStream.cs
- LambdaCompiler.Generated.cs
- Activator.cs
- counter.cs
- KeysConverter.cs
- SchemaDeclBase.cs
- ObjectAnimationBase.cs
- Win32Interop.cs
- TaiwanCalendar.cs
- AdapterDictionary.cs