---
title: SAIFTextBox
summary: API reference for SAIFTextBox.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-08-17
library: SAIF.Presentation.Web.Controls.V2
reference_type: package
---

# SAIFTextBox

A textbox that can show a live character counter for multi-line, length-limited input, requiring both a positive `MaxLength` and explicit opt-in before the counter appears [BR-V2-096](../../business-rules.md#br-v2-096-character-counter-requires-multi-line-positive-maxlength-and-opt-in).

## Purpose
- Only shows the character counter when the textbox is multi-line, `MaxLength` is positive, and `ShowCharacterCounter` is explicitly enabled [BR-V2-096](../../business-rules.md#br-v2-096-character-counter-requires-multi-line-positive-maxlength-and-opt-in).
- Publishes the maximum length as a client-side attribute so script can enforce/display it [BR-V2-097](../../business-rules.md#br-v2-097-maximum-length-published-as-a-client-attribute).

## Context
- Namespace: `SAIF.Presentation.Web.Controls.V2`
- Assembly/package: `SAIF.Presentation.Web.Controls.V2` (packaged in `SAIF.BOF.Presentation.Web.Infragistics111.nuspec`)

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| ShowCharacterCounter | `Public Property ShowCharacterCounter As Boolean` | Opts into rendering the live character-counter panel [BR-V2-096](../../business-rules.md#br-v2-096-character-counter-requires-multi-line-positive-maxlength-and-opt-in). |
| MaxLength | `Public Property MaxLength As Integer` | Maximum character length; must be positive for the counter to appear, and is published as a client attribute [BR-V2-097](../../business-rules.md#br-v2-097-maximum-length-published-as-a-client-attribute). |
| RenderControl | `Public Overrides Sub RenderControl(writer As HtmlTextWriter)` | Renders the base textbox, then the counter panel when all opt-in conditions are met. |

## Sources
- `SAIF.Presentation.Web.Controls.V2/SAIFTextBox.vb`
