HScrollProperties.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; 
 

 

    /// 
    /// 
    ///     
    ///       Basic Properties for VScroll.
    ///     
    ///  
    public class HScrollProperties : ScrollProperties {
 
        /// 
        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.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK