CSGetLineHeigth Function

Description

Returns the height of a console line. The height of a console line is the character height of the Consoul window font as given by the CSGetCharHeight function, to which is added the top and bottom line spacing (CSGetLineSpacing).

The top and bottom line padding (CSGetLinePadding) are not added to the line height.

Line rectangles

Syntax

VB/A 32bits

Private Declare Function CSGetLineHeight Lib "consoul_010205_32.dll" ( _
  ByVal hWnd As Long _
) As Integer

VB/A 64bits

Private Declare PtrSafe Function CSGetLineHeight Lib "consoul_010205_64.dll" ( _
  ByVal hWnd As LongPtr _
) As Integer

Return Value

The return value is the height of a console line.

Parameters

hWnd

The window handle (HWND) of the Consoul window, as returned by CSCreateLogWindow.

Last updated: May 13 2022.