TxtCharCopyFitEx Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:18

Description

Fits the text in the current geometry by varying the justification parameters according to the specified set of limits.

Note: if fitting cannot be reached neither with the maximum allowed modification, the maximum allowed modification is applied anyway.

Syntax

Ted.TxtCharCopyFitEx strCfgName, bApplyAlways

strCfgName

Name of the set of stretch/shrink limits to use. If not specified (empty string) the function uses the default copy-fit options for the text's format. If equal to '?' the user is prompted to chose a copy-fit options set with a dialog.

bAlways        

If bApplyAlways is true the best possible copy-fit is applied to the text even if it does not acheve a fit, if bApplyAlways is false the copy-fit is applied only if a fit is acheved (i.e. the command behaves exactly like TxtCharCopyFit and TxtCharCopyFitDlg)

Return value

Error code

See also

TxtCharCopyFit, TxtCharCopyFitDlg, TxtCopyFit, TxtClearCopyFit.

Context

Main application common dispatcher commands