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
- SelectedDatesCollection.cs
- RenderData.cs
- RegexParser.cs
- AuthenticationSection.cs
- XmlReflectionMember.cs
- LayoutEngine.cs
- AssemblyNameEqualityComparer.cs
- ParameterEditorUserControl.cs
- WorkflowRuntimeServicesBehavior.cs
- CheckBoxList.cs
- PerfCounterSection.cs
- InputBuffer.cs
- DependencyPropertyKey.cs
- MemberJoinTreeNode.cs
- WindowsListViewSubItem.cs
- TypeGeneratedEventArgs.cs
- CurrencyWrapper.cs
- BindingElement.cs
- StringFormat.cs
- ResourceSet.cs
- FormParameter.cs
- Base64Encoder.cs
- LinearQuaternionKeyFrame.cs
- TokenizerHelper.cs
- TransactionProtocol.cs
- NoClickablePointException.cs
- SizeKeyFrameCollection.cs
- CssTextWriter.cs
- GridViewRowCollection.cs
- SqlDeflator.cs
- NeutralResourcesLanguageAttribute.cs
- Crc32.cs
- MobileControlsSectionHelper.cs
- InstanceDataCollection.cs
- SqlAliasesReferenced.cs
- BulletChrome.cs
- TypeLibConverter.cs
- smtpconnection.cs
- CLRBindingWorker.cs
- Rotation3DAnimationBase.cs
- RayHitTestParameters.cs
- DesignerActionVerbItem.cs
- Interfaces.cs
- SemanticBasicElement.cs
- Bezier.cs
- HashCryptoHandle.cs
- XmlBoundElement.cs
- FormsAuthenticationConfiguration.cs
- WmpBitmapDecoder.cs
- ImageConverter.cs
- HtmlEmptyTagControlBuilder.cs
- DataGridViewCellMouseEventArgs.cs
- FrameworkPropertyMetadata.cs
- storepermissionattribute.cs
- ClassicBorderDecorator.cs
- HtmlProps.cs
- SafeFileMappingHandle.cs
- SqlFacetAttribute.cs
- IODescriptionAttribute.cs
- DesignerTransaction.cs
- XmlIgnoreAttribute.cs
- PriorityBindingExpression.cs
- ListParaClient.cs
- FileInfo.cs
- DateTimeParse.cs
- DataBindingExpressionBuilder.cs
- FixedDocument.cs
- SQLGuid.cs
- IconHelper.cs
- translator.cs
- SqlMethods.cs
- ControlBuilder.cs
- UnsignedPublishLicense.cs
- MetabaseSettings.cs
- IdentitySection.cs
- ResXResourceSet.cs
- CFGGrammar.cs
- DataObjectEventArgs.cs
- Ref.cs
- XmlSchemaSimpleContent.cs
- OverflowException.cs
- InkCanvas.cs
- EventProxy.cs
- ArrayExtension.cs
- FixedFindEngine.cs
- WaveHeader.cs
- ComboBox.cs
- BoundingRectTracker.cs
- AppDomainAttributes.cs
- DropShadowBitmapEffect.cs
- Compensation.cs
- XmlSchemaInclude.cs
- PropertyGridCommands.cs
- DataGridViewDesigner.cs
- DeploymentExceptionMapper.cs
- Transform3DGroup.cs
- HttpListenerElement.cs
- DataIdProcessor.cs
- RelatedImageListAttribute.cs
- PersonalizationStateQuery.cs