Home > BSPrinter documentation > Reference

TextHeightEx Method


Applies to: PrintPreview control , IPrinterEx object


Return Type: Single
Parameter(s):
In          Required          Text          As String
In          Optional          Options          As BSPrintExOptionsConstants          Default value: 0 - bsLineFeed
In          Optional          X          As Variant
In          Optional          Y          As Variant
In          Optional          Width          As Variant
In          Optional          Alignment          As BSAlignmentConstants          Default value: 0 - bsAlignLeftTop
In          Optional          WordWrap          As Boolean          Default value: True
In          Optional          WordBreak          As Boolean          Default value: False
In          Optional          RightToLeftReading          As BSAutoYesNoConstants          Default value: 2 - bsAutoYN
In          Optional          RectMarginsX          As Single          Default value: 0
In          Optional          RectMarginsY          As Single          Default value: 0
Out          Optional          StartsNewPage          As Boolean


Description:

Similar to Printer.TextHeight but with additional parameters.
Usually used in combination with PrintEx method. Please refer to PrintEx to read the explanation of the parameters.