void UpdateAlternativeText()
{
if (!_editing && this.text.Length == 0 && !string.IsNullOrEmpty(_decodedPromptText))
{
textField.SetAlternativeText(_decodedPromptText, true);
}
else
{
if (_displayAsPassword)
textField.SetAlternativeText(EncodePasswordText(this.text), false);
else
textField.SetAlternativeText(null, false);
}
}