> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetCharParams Method of the Paragraph Object

This method sets parameters for a group of characters.

## Syntax

### C++

```cpp theme={null}
HRESULT SetCharParams(
  int          Position,
  int          Count,
  ICharParams* Params,
  int          CharFlagMask,
  int          StyleFlagMask
);
```

### C\#

```csharp theme={null}
void SetCharParams(
  int        Position,
  int        Count,
  ICharParams Params,
  int        CharFlagMask,
  int        StyleFlagMask
);
```

### Visual Basic .NET

```vb theme={null}
Sub SetCharParams( _
  Position As Integer, _
  Count As Integer, _
  Params As ICharParams, _
  CharFlagMask As Integer, _
  StyleFlagMask As Integer _
)
```

## Parameters

Position

\[in] Position of character in paragraph that starts the group of characters for which the parameters are set. It should be in the range from 0 to the length of paragraph.

Count

\[in] A number of characters for which the parameters are set. It should be no less than 0 and meet the following requirement: position + count \<= paragraph length + 1

Params

\[in] This variable refers to the [CharParams](/fine-reader/engine/api-reference/text-related-objects/charparams) object that contains the new parameters for the group of characters. It must refer to a valid object.

CharFlagMask

\[in] This variable may contain any OR combination of the [CFL\_prefixed flags](/fine-reader/engine/api-reference/enumerations/characterflags). It specifies what character parameters are to be copied from the params object.

StyleFlagMask

\[in] This variable may contain any OR combination of the [StyleParamsEnum](/fine-reader/engine/api-reference/enumerations/styleparamsenum) constants. It specifies what style parameters are to be copied from the params object.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[Paragraph](/fine-reader/engine/api-reference/text-related-objects/paragraph)

[CFL\_prefixed flags](/fine-reader/engine/api-reference/enumerations/characterflags)

[CharParams](/fine-reader/engine/api-reference/text-related-objects/charparams)
