In This Article

RecentDocumentItemAutomationPeer Class

Exposes RecentDocumentItem types to UI Automation.

public class RecentDocumentItemAutomationPeer : FrameworkElementAutomationPeer
Inheritance:
object AutomationPeer UIElementAutomationPeer FrameworkElementAutomationPeer object

Constructors

RecentDocumentItemAutomationPeer(RecentDocumentItem)

Initializes a new instance of the RecentDocumentItemAutomationPeer class.

public RecentDocumentItemAutomationPeer(RecentDocumentItem owner)
Parameter Type Description
owner RecentDocumentItem

The owner element.

Methods

GetChildrenCore()

Gets the collection of child elements of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetChildren().

protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>:

A list of child AutomationPeer elements.

GetClassNameCore()

Gets the name of the UIElement that is associated with this UIElementAutomationPeer. This method is called by GetClassName().

protected override string GetClassNameCore()

Returns

string:

An Empty string.

GetHelpTextCore()

Gets the string that describes the functionality of the ContentElement that is associated with this ContentElementAutomationPeer. Called by GetHelpText().

protected override string GetHelpTextCore()

Returns

string:

The help text, usually from the ToolTip, or Empty if there is no help text.

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by GetLocalizedControlType().

protected override string GetLocalizedControlTypeCore()

Returns

string:

The type of the control.

GetNameCore()

Gets the text label of the ContentElement that is associated with this ContentElementAutomationPeer. Called by GetName().

protected override string GetNameCore()

Returns

string:

The text label of the element that is associated with this automation peer.