跳轉到主要內容
此方法會為一組字元設定參數。

語法

C++

HRESULT SetCharParams(
  int          Position,
  int          Count,
  ICharParams* Params,
  int          CharFlagMask,
  int          StyleFlagMask
);

C#

void SetCharParams(
  int        Position,
  int        Count,
  ICharParams Params,
  int        CharFlagMask,
  int        StyleFlagMask
);

Visual Basic .NET

Sub SetCharParams( _
  Position As Integer, _
  Count As Integer, _
  Params As ICharParams, _
  CharFlagMask As Integer, _
  StyleFlagMask As Integer _
)

參數

Position [in] 段落中作為字元群組起始位置的字元位置,系統會為該群組設定參數。其值應介於 0 到段落長度之間。 Count [in] 要設定參數的字元數。其值不得小於 0,並且必須符合下列要求:position + count <= paragraph length + 1 Params [in] 此變數參照 CharParams 物件,其中包含該字元群組的新參數。它必須參照有效的物件。 CharFlagMask [in] 此變數可包含 CFL_prefixed flags 的任意 OR 組合。它指定要從 params 物件複製哪些字元參數。 StyleFlagMask [in] 此變數可包含 StyleParamsEnum 常數的任意 OR 組合。它指定要從 params 物件複製哪些樣式參數。

回傳值

此方法沒有特定的回傳值。它會回傳 ABBYY FineReader Engine 函式的標準回傳值

另請參見

Paragraph CFL_prefixed flags CharParams