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
- ReadOnlyNameValueCollection.cs
- baseaxisquery.cs
- InvalidChannelBindingException.cs
- Math.cs
- ValueChangedEventManager.cs
- ColumnMap.cs
- AmbientProperties.cs
- SimpleBitVector32.cs
- TreeSet.cs
- Point3D.cs
- CounterSampleCalculator.cs
- panel.cs
- Currency.cs
- RequestCache.cs
- BaseHashHelper.cs
- LocatorGroup.cs
- ContainerAction.cs
- ShaderRenderModeValidation.cs
- DataColumn.cs
- ValidateNames.cs
- OracleBoolean.cs
- MsmqEncryptionAlgorithm.cs
- ConnectionStringsSection.cs
- BulletedListDesigner.cs
- Predicate.cs
- JpegBitmapDecoder.cs
- XNodeValidator.cs
- NativeMethods.cs
- PrintPreviewControl.cs
- prefixendpointaddressmessagefiltertable.cs
- RowToFieldTransformer.cs
- AudioBase.cs
- QuaternionValueSerializer.cs
- XXXInfos.cs
- ServiceDescriptionContext.cs
- GridItemProviderWrapper.cs
- EmptyControlCollection.cs
- BindingGroup.cs
- IgnoreSectionHandler.cs
- ScrollItemPatternIdentifiers.cs
- DbgCompiler.cs
- Serializer.cs
- WebHttpElement.cs
- HtmlWindow.cs
- BufferAllocator.cs
- SiteMapSection.cs
- HtmlListAdapter.cs
- SafeEventLogReadHandle.cs
- RadioButtonFlatAdapter.cs
- DataGridColumnCollectionEditor.cs
- EventInfo.cs
- MaterialCollection.cs
- WithParamAction.cs
- DataSourceHelper.cs
- SelectionRangeConverter.cs
- AllMembershipCondition.cs
- InternalsVisibleToAttribute.cs
- SR.cs
- ComboBox.cs
- GetUserPreferenceRequest.cs
- ManagedIStream.cs
- EmptyEnumerator.cs
- Query.cs
- figurelength.cs
- TextAnchor.cs
- PtsPage.cs
- PropertyRef.cs
- PathGeometry.cs
- ShaderEffect.cs
- SerializationFieldInfo.cs
- SQLInt32Storage.cs
- CommonObjectSecurity.cs
- XXXInfos.cs
- SQLGuidStorage.cs
- EmptyCollection.cs
- PropertyDescriptors.cs
- SiteMapDataSourceView.cs
- TypeSystemProvider.cs
- SecUtil.cs
- MatchingStyle.cs
- TextDecorationUnitValidation.cs
- HttpProtocolImporter.cs
- TreeNodeStyle.cs
- HandledMouseEvent.cs
- _AuthenticationState.cs
- SqlFunctionAttribute.cs
- QueryExtender.cs
- ThousandthOfEmRealDoubles.cs
- PersonalizationEntry.cs
- ObjectFullSpanRewriter.cs
- SqlRowUpdatingEvent.cs
- NamespaceList.cs
- ClaimTypes.cs
- RequestCacheValidator.cs
- XsltLibrary.cs
- DetailsViewDeleteEventArgs.cs
- StringBlob.cs
- CompositeFontInfo.cs
- DataGridViewRowHeaderCell.cs
- FontClient.cs