The YCountChars property, used for processes creating a console window, specifies the screen buffer height in character rows. ...

The YCountChars property, used for processes creating a console window, specifies the screen buffer height in character rows.  These values are ignored in GUI processes.  Note, XCountChars and YCountChars cannot be specified independently.