Click or drag to resize

AccessibilityAltTextSet Method (TextBox, String)

This method sets the "aria-label" attribute supported by most screen readers as text to be read aloud instead of the anchor's visible text. Screen readers read aloud any ALT text on images, but not on most other tags. http://www.w3.org/TR/wai-aria/states_and_properties#aria-label

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void AltTextSet(
	this TextBox input,
	string text
)

Parameters

input
Type: System.Web.UI.WebControlsTextBox
The textbox for which to provide alternate text.
text
Type: SystemString
The alternate text value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TextBox. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also