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
- ColumnPropertiesGroup.cs
- CodeTypeOfExpression.cs
- CriticalFinalizerObject.cs
- DataControlPagerLinkButton.cs
- TimeSpanValidator.cs
- PropertyGridEditorPart.cs
- PopupRootAutomationPeer.cs
- ToolStripTemplateNode.cs
- SettingsPropertyValueCollection.cs
- cache.cs
- PropertyGridEditorPart.cs
- TokenFactoryBase.cs
- NullableIntSumAggregationOperator.cs
- RuntimeArgumentHandle.cs
- FrameworkObject.cs
- RowToParametersTransformer.cs
- RemoteWebConfigurationHostStream.cs
- DataFieldCollectionEditor.cs
- StringAttributeCollection.cs
- XmlDocumentFieldSchema.cs
- OracleInfoMessageEventArgs.cs
- StylusPointProperties.cs
- RightNameExpirationInfoPair.cs
- MILUtilities.cs
- ColumnHeader.cs
- LicenseException.cs
- NetStream.cs
- XmlArrayAttribute.cs
- EventBuilder.cs
- ThousandthOfEmRealPoints.cs
- ManualResetEvent.cs
- RedistVersionInfo.cs
- XmlUTF8TextWriter.cs
- webeventbuffer.cs
- SystemIPInterfaceProperties.cs
- nulltextcontainer.cs
- SortedDictionary.cs
- ContainerUIElement3D.cs
- ListViewItem.cs
- OleDbRowUpdatedEvent.cs
- UserMapPath.cs
- ToolStripItemRenderEventArgs.cs
- Helpers.cs
- GeneralTransform3DTo2D.cs
- DataGridViewCellValidatingEventArgs.cs
- NativeMethods.cs
- RIPEMD160Managed.cs
- TypeTypeConverter.cs
- CriticalExceptions.cs
- SemanticResultValue.cs
- XsdBuildProvider.cs
- SpecularMaterial.cs
- CacheOutputQuery.cs
- RecordsAffectedEventArgs.cs
- Axis.cs
- XmlSchemaComplexContentExtension.cs
- PointLightBase.cs
- MultipleCopiesCollection.cs
- UInt64Storage.cs
- SamlAuthenticationClaimResource.cs
- SimpleRecyclingCache.cs
- ContextBase.cs
- StringTraceRecord.cs
- TdsRecordBufferSetter.cs
- ButtonRenderer.cs
- InArgumentConverter.cs
- ColorBuilder.cs
- PersonalizationStateQuery.cs
- SqlBuffer.cs
- ClientScriptManager.cs
- FileEnumerator.cs
- SearchExpression.cs
- ContentType.cs
- DataListCommandEventArgs.cs
- FtpCachePolicyElement.cs
- FormsAuthenticationConfiguration.cs
- Int32CAMarshaler.cs
- WebPartAuthorizationEventArgs.cs
- Win32SafeHandles.cs
- RequestQueryParser.cs
- CodeIdentifiers.cs
- WsdlInspector.cs
- LoadedOrUnloadedOperation.cs
- SafeCryptoHandles.cs
- CodeArgumentReferenceExpression.cs
- CacheChildrenQuery.cs
- DependencyObjectProvider.cs
- SqlServer2KCompatibilityAnnotation.cs
- BinaryFormatter.cs
- VisualTarget.cs
- CreateUserWizardStep.cs
- ModuleConfigurationInfo.cs
- DocumentXPathNavigator.cs
- FigureParagraph.cs
- DataRecordInfo.cs
- SettingsPropertyWrongTypeException.cs
- StringBuilder.cs
- TdsParameterSetter.cs
- ListDataBindEventArgs.cs
- FilterQueryOptionExpression.cs