> ## 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 Text Object

This method sets parameters for a group of characters.

## Syntax

```vb Visual Basic .NET theme={null}
Sub SetCharParams( _
  Pos As Integer, _
  Count As Integer, _
  Params As CharParams, _
  Mask As Integer _
)
```

```cpp C++ theme={null}
HRESULT SetCharParams(
  int          Pos,
  int          Count,
  ICharParams* Params,
  int          Mask
);
```

## Parameters

**Pos**

\[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 the text.

**Count**

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

**Params**

\[in] This variable refers to the [**CharParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/charparams.md) object that contains the new parameters for the group of characters. It must refer to a valid object.

**Mask**

\[in] This variable may contain any OR combination of the [**CharParamsFlags**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/charparamsflags.md) flags. It specifies what 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 FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**Text**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/text.md)

[**CharParamsFlags**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/charparamsflags.md)

[**CharParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/charparams.md)

[**IText::GetCharParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/text-getcharparams.md)
