Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- GridViewRowCollection.cs
- RadialGradientBrush.cs
- TransportSecurityProtocolFactory.cs
- KeyFrames.cs
- TextRange.cs
- NavigationWindowAutomationPeer.cs
- InputLangChangeRequestEvent.cs
- ModuleBuilderData.cs
- PointAnimationClockResource.cs
- WindowsScrollBar.cs
- SmtpMail.cs
- Point3D.cs
- MarshalByValueComponent.cs
- DataGridViewMethods.cs
- XmlSerializer.cs
- DeploymentSectionCache.cs
- PublisherIdentityPermission.cs
- IHttpResponseInternal.cs
- DependentList.cs
- SafeThemeHandle.cs
- DataServiceQueryProvider.cs
- AsyncStreamReader.cs
- PropertyDescriptorGridEntry.cs
- ServiceNameElement.cs
- IRCollection.cs
- TagPrefixCollection.cs
- DbConnectionPoolOptions.cs
- LayoutTable.cs
- LogicalExpr.cs
- EnterpriseServicesHelper.cs
- LoginCancelEventArgs.cs
- IMembershipProvider.cs
- ExpressionEditorAttribute.cs
- LinkedDataMemberFieldEditor.cs
- IProvider.cs
- DesignerAutoFormat.cs
- DefaultValueTypeConverter.cs
- Mappings.cs
- ExtendedProtectionPolicyTypeConverter.cs
- SortedSetDebugView.cs
- ChangeProcessor.cs
- SafeFileHandle.cs
- ContractMapping.cs
- ProcessHostMapPath.cs
- CheckBox.cs
- SrgsElementFactory.cs
- Table.cs
- SqlGatherConsumedAliases.cs
- DeploymentSectionCache.cs
- QueryOptionExpression.cs
- RootNamespaceAttribute.cs
- WebPartEventArgs.cs
- XmlSchemaInferenceException.cs
- ContextMarshalException.cs
- SlipBehavior.cs
- AssociationProvider.cs
- RequestDescription.cs
- EnumerableCollectionView.cs
- TextMarkerSource.cs
- RenameRuleObjectDialog.cs
- RangeValueProviderWrapper.cs
- SHA512Managed.cs
- ResXResourceWriter.cs
- ByteStreamBufferedMessageData.cs
- RemoteX509AsymmetricSecurityKey.cs
- RegexWriter.cs
- TreeChangeInfo.cs
- InputGestureCollection.cs
- XmlSubtreeReader.cs
- CaretElement.cs
- DataListItemCollection.cs
- HttpRequestCacheValidator.cs
- RsaSecurityToken.cs
- UniqueEventHelper.cs
- RelOps.cs
- IisTraceWebEventProvider.cs
- GenericParameterDataContract.cs
- HotSpot.cs
- SrgsRulesCollection.cs
- FileSystemInfo.cs
- VirtualPathUtility.cs
- DependencyPropertyKey.cs
- RTLAwareMessageBox.cs
- TriState.cs
- ConditionedDesigner.cs
- TemplateColumn.cs
- XmlTextAttribute.cs
- XsltException.cs
- CryptoConfig.cs
- _TimerThread.cs
- WmiEventSink.cs
- MULTI_QI.cs
- KeyMatchBuilder.cs
- AddInControllerImpl.cs
- XmlEntity.cs
- TableLayoutPanelCellPosition.cs
- WebPartEditorCancelVerb.cs
- Int16AnimationBase.cs
- XmlText.cs
- ObjectCloneHelper.cs