> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# CharacterLimit

## Definition

Determines the maximum number of characters the social network allows. Signature, text, and links all contribute to this character count displayed on the share window.

A value of **int.MaxValue** determines no practical limit and will make the character count not appear on the Share window.

## Property Value

A **int** value that represents the maximum number of characters the social network allows.

This property should ONLY be set from the **OnStateChange()** method during **State.SetDefaults** or **State.Configure**.

## Syntax

`CharacterLimit`

## Examples

```csharp
protected override void OnStateChange()
{
    if (State == State.SetDefaults)
    {
        CharacterLimit = 280;
    }
}
```