Class
GanttTaskAutomationPeer

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

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.GanttView.dll

Syntax:

cs-api-definition
public class GanttTaskAutomationPeer : AutomationPeer, ISelectionItemProvider, IScrollItemProvider, IExpandCollapseProvider

Inheritance: objectGanttTaskAutomationPeer

Implements: IExpandCollapseProviderIScrollItemProviderISelectionItemProvider

Constructors

GanttTaskAutomationPeer(IGanttTask, GanttItemsPresenter)

Initializes a new instance of the GanttTaskAutomationPeer class.

Declaration

cs-api-definition
public GanttTaskAutomationPeer(IGanttTask task, GanttItemsPresenter owner)

Parameters

task

IGanttTask

The Gantt task.

owner

GanttItemsPresenter

The owner presenter.

Properties

ExpandCollapseState

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

Declaration

cs-api-definition
public ExpandCollapseState ExpandCollapseState { get; }

Property Value

ExpandCollapseState

IsSelected

Gets a value that indicates whether an item is selected.

Declaration

cs-api-definition
public bool IsSelected { get; }

Property Value

bool

true if the element is selected; otherwise false.

SelectionContainer

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

Declaration

cs-api-definition
public IRawElementProviderSimple SelectionContainer { get; }

Property Value

IRawElementProviderSimple

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

Methods

AddToSelection()

Adds the current element to the collection of selected items.

Declaration

cs-api-definition
public void AddToSelection()

Collapse()

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

Declaration

cs-api-definition
public void Collapse()

Expand()

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

Declaration

cs-api-definition
public void Expand()

GetAcceleratorKeyCore()

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

Declaration

cs-api-definition
protected override string GetAcceleratorKeyCore()

Returns

string

The accelerator key.

GetAccessKeyCore()

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

Declaration

cs-api-definition
protected override string GetAccessKeyCore()

Returns

string

The string that contains the access key.

GetAutomationControlTypeCore()

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

Declaration

cs-api-definition
protected override AutomationControlType GetAutomationControlTypeCore()

Returns

AutomationControlType

The control type.

GetAutomationIdCore()

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

Declaration

cs-api-definition
protected override string GetAutomationIdCore()

Returns

string

The string that contains the identifier.

GetBoundingRectangleCore()

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

Declaration

cs-api-definition
protected override Rect GetBoundingRectangleCore()

Returns

Rect

The bounding rectangle.

GetChildrenCore()

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

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists")]
protected override List<AutomationPeer> GetChildrenCore()

Returns

List<AutomationPeer>

The collection of child elements.

GetClassNameCore()

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.

Declaration

cs-api-definition
protected override string GetClassNameCore()

Returns

string

The class name.

GetClickablePointCore()

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

Declaration

cs-api-definition
protected override Point GetClickablePointCore()

Returns

Point

A point within the clickable area of the element.

GetHelpTextCore()

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

Declaration

cs-api-definition
protected override string GetHelpTextCore()

Returns

string

The help text.

GetItemStatusCore()

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

Declaration

cs-api-definition
protected override string GetItemStatusCore()

Returns

string

The status.

GetItemTypeCore()

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

Declaration

cs-api-definition
protected override string GetItemTypeCore()

Returns

string

The kind of item.

GetLabeledByCore()

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

Declaration

cs-api-definition
protected override AutomationPeer GetLabeledByCore()

Returns

AutomationPeer

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

GetLocalizedControlTypeCore()

When overridden in a derived class, is called by .

Declaration

cs-api-definition
protected override string GetLocalizedControlTypeCore()

Returns

string

The type of the control.

GetNameCore()

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

Declaration

cs-api-definition
protected override string GetNameCore()

Returns

string

The string that contains the label.

GetOrientationCore()

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

Declaration

cs-api-definition
protected override AutomationOrientation GetOrientationCore()

Returns

AutomationOrientation

The orientation of the control.

GetPattern(PatternInterface)

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

Declaration

cs-api-definition
public override object GetPattern(PatternInterface patternInterface)

Parameters

patternInterface

PatternInterface

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.

HasKeyboardFocusCore()

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

Declaration

cs-api-definition
protected override bool HasKeyboardFocusCore()

Returns

bool

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

IsContentElementCore()

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

Declaration

cs-api-definition
protected override bool IsContentElementCore()

Returns

bool

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

IsControlElementCore()

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

Declaration

cs-api-definition
protected override bool IsControlElementCore()

Returns

bool

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

IsEnabledCore()

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

Declaration

cs-api-definition
protected override bool IsEnabledCore()

Returns

bool

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

IsKeyboardFocusableCore()

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

Declaration

cs-api-definition
protected override bool IsKeyboardFocusableCore()

Returns

bool

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

IsOffscreenCore()

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

Declaration

cs-api-definition
protected override bool IsOffscreenCore()

Returns

bool

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

IsPasswordCore()

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

Declaration

cs-api-definition
protected override bool IsPasswordCore()

Returns

bool

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

IsRequiredForFormCore()

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

Declaration

cs-api-definition
protected override bool IsRequiredForFormCore()

Returns

bool

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

RemoveFromSelection()

Removes the current element from the collection of selected items.

Declaration

cs-api-definition
public void RemoveFromSelection()

ScrollIntoView()

Declaration

cs-api-definition
public void ScrollIntoView()

Select()

Deselects any selected items and then selects the current element.

Declaration

cs-api-definition
public void Select()

SetFocusCore()

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

Declaration

cs-api-definition
protected override void SetFocusCore()