Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. //------------------------------------------------------------------------------ ///// 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
- MessageDroppedTraceRecord.cs
- OdbcConnection.cs
- ThumbAutomationPeer.cs
- WinCategoryAttribute.cs
- XmlLanguage.cs
- SchemaCollectionPreprocessor.cs
- SocketPermission.cs
- InstanceData.cs
- ColorKeyFrameCollection.cs
- CountdownEvent.cs
- PasswordRecovery.cs
- ExceptionTrace.cs
- EncodingInfo.cs
- PopOutPanel.cs
- TdsParameterSetter.cs
- SQLUtility.cs
- ConnectionConsumerAttribute.cs
- MarginCollapsingState.cs
- ExpressionBuilder.cs
- SessionEndingEventArgs.cs
- TextSpanModifier.cs
- ImageListUtils.cs
- ConnectionsZoneDesigner.cs
- RecordBuilder.cs
- FileChangesMonitor.cs
- TextFormatterContext.cs
- ToolboxComponentsCreatingEventArgs.cs
- CharEnumerator.cs
- InkPresenterAutomationPeer.cs
- EncryptedKeyHashIdentifierClause.cs
- XmlDataDocument.cs
- FrameworkElementFactory.cs
- InterleavedZipPartStream.cs
- RuntimeArgumentHandle.cs
- PrintDialog.cs
- RenameRuleObjectDialog.cs
- WindowsNonControl.cs
- LayoutInformation.cs
- XPathNavigator.cs
- CalendarAutoFormat.cs
- PageCodeDomTreeGenerator.cs
- InplaceBitmapMetadataWriter.cs
- WindowsImpersonationContext.cs
- CancelEventArgs.cs
- Constants.cs
- XmlNamespaceDeclarationsAttribute.cs
- TextTreeTextElementNode.cs
- _CacheStreams.cs
- HostProtectionPermission.cs
- CodeSpit.cs
- RSAPKCS1KeyExchangeFormatter.cs
- EncryptedKey.cs
- HttpContextServiceHost.cs
- CreationContext.cs
- XmlWrappingReader.cs
- SectionVisual.cs
- CheckBoxRenderer.cs
- DateTimeFormat.cs
- CustomErrorsSectionWrapper.cs
- SimpleWebHandlerParser.cs
- AuthenticationConfig.cs
- ComEventsHelper.cs
- ClickablePoint.cs
- EntityProviderFactory.cs
- ByteStack.cs
- XamlTypeMapper.cs
- ExtractedStateEntry.cs
- SourceFilter.cs
- MultipleViewPattern.cs
- FixedSOMElement.cs
- NestedContainer.cs
- EdmTypeAttribute.cs
- BindingBase.cs
- DocumentSchemaValidator.cs
- SortQuery.cs
- SequenceFullException.cs
- ExpressionBuilderCollection.cs
- WCFBuildProvider.cs
- EncoderBestFitFallback.cs
- XmlWriter.cs
- ToolStripDropDownButton.cs
- SelectionProcessor.cs
- Int32KeyFrameCollection.cs
- shaperfactory.cs
- BoolExpression.cs
- UriTemplateClientFormatter.cs
- FragmentQuery.cs
- PhoneCall.cs
- CachedTypeface.cs
- StructuredProperty.cs
- DataObject.cs
- StrokeIntersection.cs
- CachedTypeface.cs
- HtmlTableCell.cs
- XamlRtfConverter.cs
- Wildcard.cs
- SocketStream.cs
- ToolbarAUtomationPeer.cs
- _UriTypeConverter.cs
- _TimerThread.cs