New to Telerik UI for WPFStart a free 30-day trial

Provides a class that exposes a Gantt task to UI Automation.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.GanttView.dll

Syntax:

C#
public class GanttTaskAutomationPeer : AutomationPeer, ISelectionItemProvider, IScrollItemProvider, IExpandCollapseProvider

Inheritance: objectGanttTaskAutomationPeer

Implements: IExpandCollapseProviderIScrollItemProviderISelectionItemProvider

Constructors

Initializes a new instance of the GanttTaskAutomationPeer class.

C#
public GanttTaskAutomationPeer(IGanttTask task, GanttItemsPresenter owner)
Parameters:taskIGanttTask

The Gantt task.

ownerGanttItemsPresenter

The owner presenter.

Properties

ExpandCollapseState

ExpandCollapseState

Gets the state, expanded or collapsed, of the control.

C#
public ExpandCollapseState ExpandCollapseState { get; }

Gets a value that indicates whether an item is selected.

C#
public bool IsSelected { get; }
Property Value:

true if the element is selected; otherwise false.

SelectionContainer

IRawElementProviderSimple

Gets the UI Automation provider that implements System.Windows.Automation.Provider.ISelectionProvider and acts as the container for the calling object.

C#
public IRawElementProviderSimple SelectionContainer { get; }
Property Value:

The provider that supports System.Windows.Automation.Provider.ISelectionProvider.

Methods

Adds the current element to the collection of selected items.

C#
public void AddToSelection()

Hides all nodes, controls, or content that are descendants of the control.

C#
public void Collapse()

Displays all child nodes, controls, or content of the control.

C#
public void Expand()

Gets the accelerator key combinations for the element that is associated with the UI Automation peer.

C#
protected override string GetAcceleratorKeyCore()
Returns:

string

The accelerator key.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetAccessKey().

C#
protected override string GetAccessKeyCore()
Returns:

string

The string that contains the access key.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationControlType().

C#
protected override AutomationControlType GetAutomationControlTypeCore()
Returns:

AutomationControlType

The control type.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationId().

C#
protected override string GetAutomationIdCore()
Returns:

string

The string that contains the identifier.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetBoundingRectangle().

C#
protected override Rect GetBoundingRectangleCore()
Returns:

Rect

The bounding rectangle.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetChildren().

C#
protected override List<AutomationPeer> GetChildrenCore()
Returns:

List<AutomationPeer>

The collection of child elements.

Gets a name that is used with System.Windows.Automation.Peers.AutomationControlType, to differentiate the control that is represented by this System.Windows.Automation.Peers.AutomationPeer.

C#
protected override string GetClassNameCore()
Returns:

string

The class name.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetClickablePoint().

C#
protected override Point GetClickablePointCore()
Returns:

Point

A point within the clickable area of the element.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetHelpText().

C#
protected override string GetHelpTextCore()
Returns:

string

The help text.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetItemStatus().

C#
protected override string GetItemStatusCore()
Returns:

string

The status.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetItemType().

C#
protected override string GetItemTypeCore()
Returns:

string

The kind of item.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetLabeledBy().

C#
protected override AutomationPeer GetLabeledByCore()
Returns:

AutomationPeer

The System.Windows.Automation.Peers.LabelAutomationPeer for the element that is targeted by the System.Windows.Controls.Label.

When overridden in a derived class, is called by .

C#
protected override string GetLocalizedControlTypeCore()
Returns:

string

The type of the control.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetName().

C#
protected override string GetNameCore()
Returns:

string

The string that contains the label.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetOrientation().

C#
protected override AutomationOrientation GetOrientationCore()
Returns:

AutomationOrientation

The orientation of the control.

When overridden in a derived class, gets the control pattern that is associated with the specified System.Windows.Automation.Peers.PatternInterface.

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterface

A value from the System.Windows.Automation.Peers.PatternInterface enumeration.

Returns:

object

The object that implements the pattern interface; null if this peer does not support this interface.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.HasKeyboardFocus().

C#
protected override bool HasKeyboardFocusCore()
Returns:

bool

True if the element has keyboard focus; otherwise, false.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.IsContentElement().

C#
protected override bool IsContentElementCore()
Returns:

bool

True if the element is a content element; otherwise, false.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.IsControlElement().

C#
protected override bool IsControlElementCore()
Returns:

bool

True if the element is a control; otherwise, false.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.IsEnabled().

C#
protected override bool IsEnabledCore()
Returns:

bool

True if the automation peer can receive and send events; otherwise, false.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.IsKeyboardFocusable().

C#
protected override bool IsKeyboardFocusableCore()
Returns:

bool

True if the element can accept keyboard focus; otherwise, false.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.IsOffscreen().

C#
protected override bool IsOffscreenCore()
Returns:

bool

True if the element is not on the screen otherwise, false.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.IsPassword().

C#
protected override bool IsPasswordCore()
Returns:

bool

True if the element contains sensitive content; otherwise, false.

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.IsRequiredForForm().

C#
protected override bool IsRequiredForFormCore()
Returns:

bool

True if the element is must be completed; otherwise, false.

Removes the current element from the collection of selected items.

C#
public void RemoveFromSelection()
C#
public void ScrollIntoView()

Deselects any selected items and then selects the current element.

C#
public void Select()

When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.SetFocus().

C#
protected override void SetFocusCore()