Code:
/ 4.0 / 4.0 / 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. /// ///// 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
- ShadowGlyph.cs
- X509ChainElement.cs
- CalendarDesigner.cs
- CopyNodeSetAction.cs
- UniqueConstraint.cs
- SystemIPAddressInformation.cs
- TypeBuilder.cs
- SemaphoreFullException.cs
- CollectionViewGroup.cs
- WebPartsPersonalizationAuthorization.cs
- CodeAttributeArgument.cs
- Gdiplus.cs
- HyperLinkField.cs
- InvokeSchedule.cs
- DefaultEventAttribute.cs
- PrintingPermission.cs
- XmlBoundElement.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- HtmlInputText.cs
- TableLayout.cs
- DataControlFieldHeaderCell.cs
- ProfileBuildProvider.cs
- HashMembershipCondition.cs
- While.cs
- ServerIdentity.cs
- XmlNamespaceMapping.cs
- SamlAssertionKeyIdentifierClause.cs
- ParallelTimeline.cs
- AsmxEndpointPickerExtension.cs
- CodeNamespace.cs
- TrailingSpaceComparer.cs
- MediaTimeline.cs
- GroupByQueryOperator.cs
- SQLBytesStorage.cs
- MatchAttribute.cs
- RoleService.cs
- RadioButtonBaseAdapter.cs
- DomainUpDown.cs
- DataColumnChangeEvent.cs
- IdnMapping.cs
- Cursors.cs
- TargetControlTypeAttribute.cs
- StylusPlugin.cs
- EmbossBitmapEffect.cs
- DataGridRowHeader.cs
- NamespaceCollection.cs
- SslStream.cs
- _AutoWebProxyScriptEngine.cs
- EntityModelSchemaGenerator.cs
- DrawingVisual.cs
- CommandField.cs
- ScrollBar.cs
- TextBox.cs
- DownloadProgressEventArgs.cs
- BamlRecordWriter.cs
- ValueQuery.cs
- DbDataReader.cs
- EventTask.cs
- Soap.cs
- Matrix3D.cs
- TabItemWrapperAutomationPeer.cs
- TypeConverterAttribute.cs
- PathSegmentCollection.cs
- DataDocumentXPathNavigator.cs
- SRef.cs
- EditorBrowsableAttribute.cs
- Expr.cs
- ProfileInfo.cs
- AuthenticationModuleElementCollection.cs
- SafeBuffer.cs
- ObjectDataSource.cs
- BufferedResponseStream.cs
- WindowInteractionStateTracker.cs
- RadioButtonStandardAdapter.cs
- ConnectionsZone.cs
- ToolStripContainer.cs
- ReferentialConstraintRoleElement.cs
- StyleSheetRefUrlEditor.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- ProfileGroupSettingsCollection.cs
- PrtTicket_Public.cs
- EntityConnectionStringBuilder.cs
- RunInstallerAttribute.cs
- TextEndOfParagraph.cs
- ExtendedPropertiesHandler.cs
- CultureInfoConverter.cs
- DataServiceRequestOfT.cs
- AnchorEditor.cs
- BaseAsyncResult.cs
- UniqueIdentifierService.cs
- Guid.cs
- _SpnDictionary.cs
- AddValidationError.cs
- ToolStripSplitButton.cs
- WSHttpSecurityElement.cs
- ResourceKey.cs
- ValidationErrorCollection.cs
- LastQueryOperator.cs
- IisTraceListener.cs
- adornercollection.cs