Win32.COORD.ToInt32 C# (CSharp) Method

ToInt32() public method

public ToInt32 ( ) : Int32
return System.Int32
        public Int32 ToInt32()
        {
            return (UInt16)X | (Y << 16);
        }

Usage Example

示例#1
0
文件: console.cs 项目: sirmax1/coin
        public void Scroll(Rectangle rect, Rectangle? clip, Point origin, CHAR_INFO fill)
        {
            var r = new SMALL_RECT() {
            Left = (short)rect.Left,
            Top = (short)rect.Top,
            Right = (short)rect.Right,
            Bottom = (short)rect.Bottom
            };

            var d = new COORD() {
            X = (short)origin.X,
            Y = (short)(origin.Y) //!!!
            };

            Api.Win32Check(Api.ScrollConsoleScreenBuffer(Handle, ref r , IntPtr.Zero, d.ToInt32(), ref fill));
        }
COORD