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
- ExpandSegmentCollection.cs
- MediaSystem.cs
- Connector.cs
- AvTrace.cs
- SecurityTokenProvider.cs
- UnSafeCharBuffer.cs
- ScrollableControl.cs
- SchemaComplexType.cs
- ReadOnlyCollection.cs
- RequestCachePolicyConverter.cs
- SubpageParaClient.cs
- ReadWriteSpinLock.cs
- TiffBitmapEncoder.cs
- RunWorkerCompletedEventArgs.cs
- ErrorEventArgs.cs
- EventSinkHelperWriter.cs
- EditingCommands.cs
- Normalization.cs
- storepermissionattribute.cs
- Int16Animation.cs
- ActivityCompletionCallbackWrapper.cs
- TypeElement.cs
- _Win32.cs
- Single.cs
- InternalPolicyElement.cs
- WebPartsPersonalizationAuthorization.cs
- _UriTypeConverter.cs
- Int64KeyFrameCollection.cs
- BoundField.cs
- UniqueIdentifierService.cs
- RelatedImageListAttribute.cs
- ResXResourceSet.cs
- NavigationHelper.cs
- AnnotationHighlightLayer.cs
- Emitter.cs
- SecurityManager.cs
- _TLSstream.cs
- AxWrapperGen.cs
- UInt64Converter.cs
- IUnknownConstantAttribute.cs
- Point3DAnimationBase.cs
- UnknownExceptionActionHelper.cs
- DocumentViewer.cs
- ToolStripLocationCancelEventArgs.cs
- SessionEndedEventArgs.cs
- Emitter.cs
- BamlLocalizableResource.cs
- DaylightTime.cs
- ProjectionCamera.cs
- MenuCommand.cs
- CacheVirtualItemsEvent.cs
- ColumnHeader.cs
- TextBoxAutomationPeer.cs
- DropSourceBehavior.cs
- ArraySegment.cs
- TextRenderingModeValidation.cs
- RuntimeWrappedException.cs
- SupportsEventValidationAttribute.cs
- Error.cs
- HttpPostClientProtocol.cs
- XmlSchemaExporter.cs
- SettingsAttributes.cs
- FrameSecurityDescriptor.cs
- SqlGenericUtil.cs
- FilteredAttributeCollection.cs
- DeploymentSectionCache.cs
- TableRow.cs
- MenuItemBindingCollection.cs
- VisualTarget.cs
- DiagnosticTraceSource.cs
- PolicyManager.cs
- TypeListConverter.cs
- DiscoveryServerProtocol.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- future.cs
- Transform.cs
- HtmlInputButton.cs
- Visual3D.cs
- MasterPage.cs
- DirtyTextRange.cs
- CleanUpVirtualizedItemEventArgs.cs
- LicFileLicenseProvider.cs
- MappingException.cs
- SiteMapSection.cs
- SqlConnectionString.cs
- DataRow.cs
- ChoiceConverter.cs
- PopupEventArgs.cs
- RectangleF.cs
- FileVersionInfo.cs
- PolicyValidationException.cs
- CFStream.cs
- ParenExpr.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- DataTable.cs
- Exceptions.cs
- XmlSchemas.cs
- ConfigurationStrings.cs
- PageRequestManager.cs
- Int16.cs