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
- BindingContext.cs
- DesignerPainter.cs
- XmlSchemaInferenceException.cs
- ListBindableAttribute.cs
- WmlCommandAdapter.cs
- DataTemplateKey.cs
- CheckableControlBaseAdapter.cs
- ObjectNavigationPropertyMapping.cs
- ModelVisual3D.cs
- XPathAxisIterator.cs
- CachedTypeface.cs
- FactoryGenerator.cs
- BamlLocalizabilityResolver.cs
- DocumentApplication.cs
- ContextQuery.cs
- SourceSwitch.cs
- BasicKeyConstraint.cs
- CombinedGeometry.cs
- StringFreezingAttribute.cs
- ConnectionsZone.cs
- Decoder.cs
- ProviderIncompatibleException.cs
- SchemaElementLookUpTable.cs
- Shape.cs
- HttpCapabilitiesBase.cs
- InstanceData.cs
- CngKey.cs
- BrowserCapabilitiesCompiler.cs
- hresults.cs
- ClientEventManager.cs
- XmlText.cs
- XmlEncodedRawTextWriter.cs
- Types.cs
- MetadataPropertyCollection.cs
- ResolveNameEventArgs.cs
- SkipStoryboardToFill.cs
- InfocardClientCredentials.cs
- Environment.cs
- unsafenativemethodsother.cs
- HttpModulesSection.cs
- PerformanceCounterPermissionEntry.cs
- FreeFormDragDropManager.cs
- BorderSidesEditor.cs
- FlowLayoutSettings.cs
- SmtpDigestAuthenticationModule.cs
- BitmapEffectInput.cs
- DataContractSerializerOperationBehavior.cs
- OdbcEnvironmentHandle.cs
- InfiniteIntConverter.cs
- XmlSchemaImport.cs
- ToolStripManager.cs
- CustomSignedXml.cs
- CompatibleComparer.cs
- CompileXomlTask.cs
- MemoryMappedViewStream.cs
- LoadWorkflowAsyncResult.cs
- PassportAuthentication.cs
- SaveFileDialog.cs
- UDPClient.cs
- AsmxEndpointPickerExtension.cs
- MobileCategoryAttribute.cs
- CharacterMetrics.cs
- Token.cs
- ObjectListCommandsPage.cs
- OracleParameterCollection.cs
- RenderData.cs
- BufferAllocator.cs
- ServiceHostingEnvironment.cs
- DefaultValueAttribute.cs
- TrackingConditionCollection.cs
- RectangleF.cs
- SQLInt32Storage.cs
- ActivationProxy.cs
- StringOutput.cs
- WCFServiceClientProxyGenerator.cs
- HttpListener.cs
- WinFormsComponentEditor.cs
- RootProfilePropertySettingsCollection.cs
- ModuleConfigurationInfo.cs
- LowerCaseStringConverter.cs
- RegionData.cs
- TokenizerHelper.cs
- ParagraphVisual.cs
- CheckBox.cs
- SchemaTableOptionalColumn.cs
- DBDataPermission.cs
- WindowsTreeView.cs
- LexicalChunk.cs
- HideDisabledControlAdapter.cs
- DateTime.cs
- ExceptionUtility.cs
- JavascriptCallbackBehaviorAttribute.cs
- DataGridViewTopLeftHeaderCell.cs
- RadialGradientBrush.cs
- DesignerAttributeInfo.cs
- DataObjectMethodAttribute.cs
- CounterSample.cs
- TemplateComponentConnector.cs
- IOException.cs
- WebContentFormatHelper.cs