Code:
/ DotNET / DotNET / 8.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
- ObjectNotFoundException.cs
- LocalBuilder.cs
- rsa.cs
- SlipBehavior.cs
- OleDbParameterCollection.cs
- RelativeSource.cs
- StylusPointProperty.cs
- SmiMetaDataProperty.cs
- XamlHttpHandlerFactory.cs
- OutputCacheModule.cs
- SqlGatherConsumedAliases.cs
- SqlInternalConnection.cs
- SplitterCancelEvent.cs
- ProgressBarAutomationPeer.cs
- LocalizableAttribute.cs
- DbConnectionPoolOptions.cs
- StrongNameKeyPair.cs
- objectresult_tresulttype.cs
- InstanceCreationEditor.cs
- BamlTreeMap.cs
- OleDragDropHandler.cs
- HttpPostedFileBase.cs
- NetworkInformationPermission.cs
- AuthorizationRule.cs
- IpcClientChannel.cs
- SqlXml.cs
- PasswordBox.cs
- sqlpipe.cs
- ServiceHostFactory.cs
- ListenerElementsCollection.cs
- NativeMethods.cs
- GridViewCancelEditEventArgs.cs
- SplitterDesigner.cs
- LassoSelectionBehavior.cs
- PropertyConverter.cs
- BufferedGraphics.cs
- AccessorTable.cs
- BaseCodePageEncoding.cs
- WeakEventManager.cs
- SoapMessage.cs
- MergePropertyDescriptor.cs
- FloaterBaseParaClient.cs
- MarshalByRefObject.cs
- brushes.cs
- WebPartManager.cs
- LicenseException.cs
- _ListenerRequestStream.cs
- ObjectListTitleAttribute.cs
- ApplicationInterop.cs
- ToolStripRenderEventArgs.cs
- MultiBinding.cs
- MatcherBuilder.cs
- PageEventArgs.cs
- CodeConstructor.cs
- Avt.cs
- ContextStack.cs
- CriticalFinalizerObject.cs
- WebControlsSection.cs
- SQLBytes.cs
- DataSourceCache.cs
- CommandExpr.cs
- Int16Storage.cs
- XmlAnyElementAttribute.cs
- TypeInfo.cs
- CodeConditionStatement.cs
- MemberRelationshipService.cs
- GridViewSelectEventArgs.cs
- GraphicsContainer.cs
- DrawingContextWalker.cs
- Stream.cs
- XmlSchemaSimpleTypeUnion.cs
- HttpHandlerActionCollection.cs
- DispatcherSynchronizationContext.cs
- XmlDictionaryReaderQuotas.cs
- TrackPoint.cs
- SettingsPropertyCollection.cs
- DbMetaDataCollectionNames.cs
- SymbolMethod.cs
- QueryStatement.cs
- CultureSpecificStringDictionary.cs
- GridViewSelectEventArgs.cs
- Expr.cs
- ContextInformation.cs
- SafeEventLogWriteHandle.cs
- Image.cs
- DrawListViewSubItemEventArgs.cs
- ClientReliableChannelBinder.cs
- Oid.cs
- XmlWriterTraceListener.cs
- NetCodeGroup.cs
- Vars.cs
- TemplatePropertyEntry.cs
- CalendarDay.cs
- SmtpClient.cs
- SecurityDocument.cs
- DeadCharTextComposition.cs
- GlobalizationSection.cs
- AVElementHelper.cs
- Int64Storage.cs
- StringToken.cs