Code:
/ 4.0 / 4.0 / untmp / 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. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartConnectVerb.cs
- MenuItemStyleCollectionEditor.cs
- IdnElement.cs
- SignatureToken.cs
- ClientOperationFormatterProvider.cs
- SqlNodeTypeOperators.cs
- DescriptionAttribute.cs
- PrintDialog.cs
- HttpStreams.cs
- SocketElement.cs
- TypedTableBase.cs
- UpdateCompiler.cs
- ReadOnlyHierarchicalDataSource.cs
- ListViewItemCollectionEditor.cs
- AstTree.cs
- WebSysDisplayNameAttribute.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- TerminatorSinks.cs
- ShapingWorkspace.cs
- TextDecorationCollectionConverter.cs
- ImageAttributes.cs
- ProfilePropertySettings.cs
- SparseMemoryStream.cs
- DefaultObjectMappingItemCollection.cs
- FileUtil.cs
- XpsSerializationManagerAsync.cs
- NavigateUrlConverter.cs
- DataGridViewRowsAddedEventArgs.cs
- FocusManager.cs
- BlockUIContainer.cs
- DrawingGroupDrawingContext.cs
- _ProxyRegBlob.cs
- uribuilder.cs
- SqlProvider.cs
- TagNameToTypeMapper.cs
- sqlinternaltransaction.cs
- Brush.cs
- WindowsSecurityToken.cs
- ScrollProperties.cs
- AssemblyFilter.cs
- RelationshipFixer.cs
- SqlDesignerDataSourceView.cs
- ProcessHostMapPath.cs
- XmlObjectSerializer.cs
- GradientBrush.cs
- DbLambda.cs
- ConfigXmlText.cs
- ServiceDebugElement.cs
- NGCPageContentSerializerAsync.cs
- XmlNodeComparer.cs
- CertificateManager.cs
- DetailsViewDeleteEventArgs.cs
- ReachDocumentReferenceCollectionSerializer.cs
- DesignerForm.cs
- Missing.cs
- TextBoxRenderer.cs
- EditorPart.cs
- BitmapEffectDrawingContent.cs
- Rect3D.cs
- OracleBinary.cs
- SimpleMailWebEventProvider.cs
- BlurBitmapEffect.cs
- ResourceExpressionBuilder.cs
- ExpressionBuilder.cs
- AddInActivator.cs
- Border.cs
- ParameterCollection.cs
- XhtmlBasicCalendarAdapter.cs
- TimersDescriptionAttribute.cs
- BuildProvidersCompiler.cs
- WebPartMenu.cs
- StrongNameSignatureInformation.cs
- SqlConnectionFactory.cs
- HwndAppCommandInputProvider.cs
- ObjectQueryProvider.cs
- DesignerActionGlyph.cs
- Geometry.cs
- EnumBuilder.cs
- CTreeGenerator.cs
- TabControlAutomationPeer.cs
- AuthenticationModulesSection.cs
- SqlFileStream.cs
- SchemaTypeEmitter.cs
- MarkupCompilePass1.cs
- SecurityContext.cs
- Quaternion.cs
- FileSystemEventArgs.cs
- ConfigurationLocation.cs
- ConditionalExpression.cs
- DockPattern.cs
- IPHostEntry.cs
- CompositeClientFormatter.cs
- ExecutionEngineException.cs
- columnmapkeybuilder.cs
- AnnotationResourceCollection.cs
- PropertyKey.cs
- DataBindingList.cs
- FontWeightConverter.cs
- XmlCharCheckingWriter.cs
- StateMachineAction.cs