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

Exposes a label element 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 RadLabelElementAccessibleObject : RadControlAccessibleObject, IReflect, IAccessible

Inheritance: objectMarshalByRefObjectStandardOleMarshalObjectAccessibleObjectControl.ControlAccessibleObjectRadControlAccessibleObjectRadLabelElementAccessibleObject...

Implements: IAccessibleIReflect

Constructors

Creates the accessibility object for a label element attached to a control.

C#
public RadLabelElementAccessibleObject(RadLabelElement owner, string name)
Parameters:ownerRadLabelElement

The attached label element represented by this object.

namestring

The accessible name passed to the base control accessibility object.

Properties

Gets the label element's bounds in screen coordinates.

C#
public override Rectangle Bounds { get; }

Overrides: AccessibleObject.Bounds

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 element text with angle-bracketed segments removed; setting the name updates the element's name.

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

Overrides: RadControlAccessibleObject.Name

Gets the RadLabelElement represented by this accessibility object.

C#
public override object OwnerElement { get; }

Overrides: RadControlAccessibleObject.OwnerElement

Gets the StaticText role for the label element.

C#
public override AccessibleRole Role { get; }

Overrides: Control.ControlAccessibleObject.Role

Gets the read-only state reported for the label element.

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.