Function TWPCustomRichText.SetCharacterSet(FromChar:Integer; ToChar:Integer; FontName:string; CharSet:Integer) : Integer

Unit: WPCTRRich
Class: WPCTRRich.TWPCustomRichText

Parameters

  • FromChar:Integer
  • ToChar:Integer
  • FontName:string
  • CharSet:Integer

Returns

The type of the result value is Integer.

Description

This utility function applies a certain fontname and character set to all characters within a certain range of unicode characters. The parameter FontName can be also passed as empty string. The function returns the count of found characters.