Gets the padding value in pixels that is applied to the characters of a Consoul window line. Padding can be applied at the top or at the bottom of the characters cells of each line with the CSSetLinePadding API function.
Private Declare Function CSGetLinePadding Lib "consoul_010205_32.dll" ( _ ByVal hWnd As Long, _ ByVal wTopOrBottom As Integer _ ) As Integer
Private Declare PtrSafe Function CSGetLinePadding Lib "consoul_010205_64.dll" ( _ ByVal hWnd As LongPtr, _ ByVal wTopOrBottom As Integer _ ) As Integer
The return value, depending on
wTopOrBottom, is the top or bottom spacing applied to all of the console lines.
The window handle (HWND) of the Consoul window, as returned by CSCreateLogWindow.
Either 0 (zero) to get the padding applied to the top of the character cells of the console lines, or 1 (one) for the bottom padding.
Padding values can be negative.
- When the top padding is negative, the text blocks be pulled up either inside the line spacing (if there's any) or outside of the (drawing rectangle), but will not overflow on the preceding line, as the output is clipped to the drawing rectangle (drawing rectangle).
- When the bottom spacing is negative, the bottom of the characters cells will be cut, leaving the line bottom spacing (if there's any).