Code:
/ 4.0 / 4.0 / 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. /// ///// 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
- HttpListenerContext.cs
- WmlCommandAdapter.cs
- SecurityResources.cs
- SolidColorBrush.cs
- ADMembershipUser.cs
- OracleBinary.cs
- AssemblyUtil.cs
- HotSpot.cs
- BuildManagerHost.cs
- SpeakProgressEventArgs.cs
- FactoryId.cs
- Clause.cs
- CollectionView.cs
- TabletDevice.cs
- Utils.cs
- EventProviderClassic.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SchemaAttDef.cs
- Quaternion.cs
- ExceptionUtil.cs
- KeysConverter.cs
- VersionPair.cs
- ProcessProtocolHandler.cs
- MarshalDirectiveException.cs
- SmtpNtlmAuthenticationModule.cs
- FixedSOMImage.cs
- _DigestClient.cs
- JoinCqlBlock.cs
- CodeExpressionCollection.cs
- CounterSetInstanceCounterDataSet.cs
- DesignerRegionMouseEventArgs.cs
- Package.cs
- FamilyTypeface.cs
- MdImport.cs
- Timer.cs
- QueryReaderSettings.cs
- WebMethodAttribute.cs
- SchemaMerger.cs
- RotationValidation.cs
- HierarchicalDataBoundControlAdapter.cs
- InputLanguageManager.cs
- TemplateControlCodeDomTreeGenerator.cs
- AudioDeviceOut.cs
- __TransparentProxy.cs
- ValidatorCompatibilityHelper.cs
- FormsAuthenticationUserCollection.cs
- ButtonFieldBase.cs
- Code.cs
- OutputCacheSection.cs
- CommandTreeTypeHelper.cs
- TCEAdapterGenerator.cs
- Classification.cs
- XPathSingletonIterator.cs
- FacetValues.cs
- ReferenceSchema.cs
- TdsParserSessionPool.cs
- LinearGradientBrush.cs
- Missing.cs
- VerificationException.cs
- RandomNumberGenerator.cs
- GroupBox.cs
- SqlGatherProducedAliases.cs
- DataTableMapping.cs
- DesignerDataSchemaClass.cs
- HelloMessage11.cs
- DataGridViewComboBoxEditingControl.cs
- AppearanceEditorPart.cs
- SchemaCollectionPreprocessor.cs
- TabletCollection.cs
- WebColorConverter.cs
- OutOfMemoryException.cs
- SiteMapPath.cs
- ReadOnlyCollection.cs
- DiffuseMaterial.cs
- SQLString.cs
- FontFaceLayoutInfo.cs
- CodeAttributeArgument.cs
- SemanticValue.cs
- ValueUnavailableException.cs
- HttpPostLocalhostServerProtocol.cs
- CoreSwitches.cs
- BinaryObjectWriter.cs
- SplitContainer.cs
- IconConverter.cs
- HistoryEventArgs.cs
- ProxyGenerationError.cs
- ParentUndoUnit.cs
- MimeObjectFactory.cs
- relpropertyhelper.cs
- LineInfo.cs
- ArcSegment.cs
- ResourcePart.cs
- NameValueConfigurationElement.cs
- DefaultBinder.cs
- SplineKeyFrames.cs
- ProjectionQueryOptionExpression.cs
- ThreadAttributes.cs
- TableLayoutStyleCollection.cs
- TextEndOfLine.cs
- OleDbFactory.cs