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
- StaticFileHandler.cs
- WindowClosedEventArgs.cs
- URLAttribute.cs
- MultiView.cs
- DefaultMemberAttribute.cs
- Buffer.cs
- CommandLineParser.cs
- CharUnicodeInfo.cs
- SerializationException.cs
- CodeDomSerializerException.cs
- TextRunTypographyProperties.cs
- LocalizationComments.cs
- HttpConfigurationContext.cs
- HexParser.cs
- MenuStrip.cs
- PipelineComponent.cs
- CompressStream.cs
- namescope.cs
- Domain.cs
- login.cs
- RichTextBoxContextMenu.cs
- EdmSchemaAttribute.cs
- Point3DIndependentAnimationStorage.cs
- Accessible.cs
- XmlUrlResolver.cs
- ClassicBorderDecorator.cs
- Font.cs
- Oid.cs
- ReadOnlyTernaryTree.cs
- Dump.cs
- EventMappingSettings.cs
- EntityDataSourceWizardForm.cs
- ObjectNavigationPropertyMapping.cs
- TypePropertyEditor.cs
- AlternateView.cs
- MimeFormReflector.cs
- PolicyException.cs
- HtmlInputCheckBox.cs
- SafeNativeMethods.cs
- DataGridColumnStyleMappingNameEditor.cs
- HighlightComponent.cs
- ObjectCloneHelper.cs
- CacheSection.cs
- InfoCardRSACryptoProvider.cs
- DataSourceGroupCollection.cs
- TableLayoutPanel.cs
- SqlExpressionNullability.cs
- GridViewCommandEventArgs.cs
- HybridCollection.cs
- CookieParameter.cs
- RtfControlWordInfo.cs
- XhtmlConformanceSection.cs
- NamespaceDecl.cs
- TreeViewEvent.cs
- WebPartCatalogAddVerb.cs
- AnimationClock.cs
- PointUtil.cs
- SchemaExporter.cs
- BufferedGenericXmlSecurityToken.cs
- RuleSettingsCollection.cs
- InheritedPropertyChangedEventArgs.cs
- ConstraintStruct.cs
- RemotingException.cs
- MappingModelBuildProvider.cs
- SQLInt32Storage.cs
- ConfigXmlDocument.cs
- CodeIndexerExpression.cs
- OdbcError.cs
- LineGeometry.cs
- ConfigXmlAttribute.cs
- Line.cs
- CultureTable.cs
- CodeNamespace.cs
- CornerRadiusConverter.cs
- TakeOrSkipQueryOperator.cs
- AnnotationObservableCollection.cs
- RayHitTestParameters.cs
- ADConnectionHelper.cs
- SqlBuffer.cs
- SHA384CryptoServiceProvider.cs
- WebPartDescriptionCollection.cs
- ArraySortHelper.cs
- SqlBuilder.cs
- StateWorkerRequest.cs
- OraclePermissionAttribute.cs
- Axis.cs
- Vector3DAnimationBase.cs
- _Semaphore.cs
- Dispatcher.cs
- HMACRIPEMD160.cs
- SiteMap.cs
- ElementHostAutomationPeer.cs
- AttachmentCollection.cs
- MetadataItem.cs
- IList.cs
- DoubleAnimationClockResource.cs
- GraphicsPath.cs
- DatatypeImplementation.cs
- ExpressionParser.cs
- MemoryFailPoint.cs