Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / HScrollProperties.cs / 1 / HScrollProperties.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Runtime.InteropServices; using System.Diagnostics; using System; using System.Security.Permissions; using System.Runtime.Serialization.Formatters; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; using System.Windows.Forms; ////// /// public class HScrollProperties : ScrollProperties { ////// Basic Properties for VScroll. /// ///public HScrollProperties(ScrollableControl container) : base(container) { } internal override int PageSize { get { return ParentControl.ClientRectangle.Width; } } internal override int Orientation { get { return NativeMethods.SB_HORZ; } } internal override int HorizontalDisplayPosition { get { return -this.value; } } internal override int VerticalDisplayPosition { get { return ParentControl.DisplayRectangle.Y; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Runtime.InteropServices; using System.Diagnostics; using System; using System.Security.Permissions; using System.Runtime.Serialization.Formatters; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; using System.Windows.Forms; ////// /// public class HScrollProperties : ScrollProperties { ////// Basic Properties for VScroll. /// ///public HScrollProperties(ScrollableControl container) : base(container) { } internal override int PageSize { get { return ParentControl.ClientRectangle.Width; } } internal override int Orientation { get { return NativeMethods.SB_HORZ; } } internal override int HorizontalDisplayPosition { get { return -this.value; } } internal override int VerticalDisplayPosition { get { return ParentControl.DisplayRectangle.Y; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlStringTable.cs
- DrawingServices.cs
- NetworkStream.cs
- BinaryWriter.cs
- PTConverter.cs
- DecoratedNameAttribute.cs
- PolicyAssertionCollection.cs
- CqlQuery.cs
- ReplyChannelAcceptor.cs
- AttributeEmitter.cs
- Math.cs
- HwndHost.cs
- AppDomainAttributes.cs
- AdPostCacheSubstitution.cs
- FormCollection.cs
- ObjectStateFormatter.cs
- CodeThrowExceptionStatement.cs
- CompositeControlDesigner.cs
- TableLayoutRowStyleCollection.cs
- IisTraceListener.cs
- RectangleHotSpot.cs
- DecoderBestFitFallback.cs
- Wizard.cs
- SqlDataSourceSelectingEventArgs.cs
- ButtonStandardAdapter.cs
- backend.cs
- DPTypeDescriptorContext.cs
- MenuCommandService.cs
- DefinitionUpdate.cs
- PersonalizableTypeEntry.cs
- FillBehavior.cs
- CodeThrowExceptionStatement.cs
- Line.cs
- PropertyChangeTracker.cs
- NTAccount.cs
- InfoCardSchemas.cs
- handlecollector.cs
- CmsInterop.cs
- ComAdminWrapper.cs
- Simplifier.cs
- ResourceDescriptionAttribute.cs
- Assert.cs
- Expressions.cs
- Verify.cs
- RemotingConfiguration.cs
- TypeDependencyAttribute.cs
- TextAdaptor.cs
- CharacterHit.cs
- CodeArrayIndexerExpression.cs
- basenumberconverter.cs
- PolygonHotSpot.cs
- ResourceExpressionBuilder.cs
- ExpanderAutomationPeer.cs
- ObjectItemConventionAssemblyLoader.cs
- XPathNavigator.cs
- PagesSection.cs
- PeerApplicationLaunchInfo.cs
- DbConnectionClosed.cs
- QueryRewriter.cs
- ValidatorCompatibilityHelper.cs
- NullableLongAverageAggregationOperator.cs
- BinaryMethodMessage.cs
- LockRecursionException.cs
- GradientBrush.cs
- SafeHandles.cs
- ADConnectionHelper.cs
- HostingPreferredMapPath.cs
- XamlDesignerSerializationManager.cs
- HttpPostProtocolReflector.cs
- _ProxyRegBlob.cs
- LayoutTable.cs
- BigInt.cs
- CacheRequest.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- __Filters.cs
- mactripleDES.cs
- ButtonFieldBase.cs
- TextEditorLists.cs
- WriteTimeStream.cs
- COAUTHINFO.cs
- BaseTemplateCodeDomTreeGenerator.cs
- XmlSerializerNamespaces.cs
- CodeActivityMetadata.cs
- DataTemplateSelector.cs
- NavigationHelper.cs
- ImpersonationContext.cs
- TransactionFlowAttribute.cs
- Literal.cs
- RotateTransform3D.cs
- HtmlTable.cs
- Bold.cs
- SocketInformation.cs
- TextAction.cs
- StateMachineSubscription.cs
- XmlDataContract.cs
- METAHEADER.cs
- XmlChoiceIdentifierAttribute.cs
- CaseInsensitiveHashCodeProvider.cs
- WorkflowMarkupElementEventArgs.cs
- TypeDescriptionProviderAttribute.cs