New to Telerik UI for WinForms? Start a free 30-day trial

Exposes a label as read-only static text, removing markup-like segments from its text in the accessible name and from the base description.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
[ComVisible(true)]
public class RadLabelAccessibleObject : Control.ControlAccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadLabelAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Creates the accessibility object for the specified label.

C#
public RadLabelAccessibleObject(RadLabel owner)
Parameters:ownerRadLabel

The label represented by this object.

Properties

Gets the base accessible description with angle-bracketed segments removed.

C#
public override string Description { get; }

Overrides: Control.ControlAccessibleObject.Description

Gets the accessible description followed by the label text with angle-bracketed segments removed; setting the name updates the control's Name.

C#
public override string Name { get; set; }

Overrides: Control.ControlAccessibleObject.Name

Gets the StaticText role for the label.

C#
public override AccessibleRole Role { get; }

Overrides: Control.ControlAccessibleObject.Role

Gets the read-only state reported for the label.

C#
public override AccessibleStates State { get; }

Overrides: AccessibleObject.State

Methods

Removes each segment beginning with '<' and ending with the next '>'; a missing closing bracket removes the remainder of the string.

C#
public static string StripHtmlLikeFormatting(string baseText)
Parameters:baseTextstring

The text to filter. A null input is treated as an empty string.

Returns:

string

The text outside the removed angle-bracketed segments.