public Coord GetFontSize(bool bMax) { if (disposed) { throw new ObjectDisposedException(this.ToString()); } ConsoleFontInfo cfi = new ConsoleFontInfo(); if (!WinCon.GetCurrentConsoleFont(_handle, bMax, cfi)) { throw new ApplicationException("Unable to get font information."); } return(cfi.dwFontSize); }
public Coord GetFontSize(bool bMax) { if (disposed) { throw new ObjectDisposedException(this.ToString()); } ConsoleFontInfo cfi = new ConsoleFontInfo(); if (!WinCon.GetCurrentConsoleFont(_handle, bMax, cfi)) { throw new ApplicationException("Unable to get font information."); } return cfi.dwFontSize; }
public static extern bool GetCurrentConsoleFont( IntPtr hConsoleOutput, bool bMaximumWindow, [Out][MarshalAs(UnmanagedType.LPStruct)] ConsoleFontInfo lpConsoleCurrentFont);