ToInt32() 공개 메소드

public ToInt32 ( ) : Int32
리턴 System.Int32
예제 #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));
        }