Provides a class that exposes a Gantt task to UI Automation.
Definition
Namespace:Telerik.Windows.Automation.Peers
Assembly:Telerik.Windows.Controls.GanttView.dll
Syntax:
public class GanttTaskAutomationPeer : AutomationPeer, ISelectionItemProvider, IScrollItemProvider, IExpandCollapseProvider
Inheritance: objectGanttTaskAutomationPeer
Implements:
Constructors
Initializes a new instance of the GanttTaskAutomationPeer class.
public GanttTaskAutomationPeer(IGanttTask task, GanttItemsPresenter owner)
The Gantt task.
ownerGanttItemsPresenterThe owner presenter.
Properties
ExpandCollapseState
ExpandCollapseState
Gets the state, expanded or collapsed, of the control.
public ExpandCollapseState ExpandCollapseState { get; }
Gets a value that indicates whether an item is selected.
public bool IsSelected { get; }
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.
public IRawElementProviderSimple SelectionContainer { get; }
The provider that supports System.Windows.Automation.Provider.ISelectionProvider.
Methods
Adds the current element to the collection of selected items.
public void AddToSelection()
Hides all nodes, controls, or content that are descendants of the control.
public void Collapse()
Displays all child nodes, controls, or content of the control.
public void Expand()
Gets the accelerator key combinations for the element that is associated with the UI Automation peer.
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetAccessKey().
protected override string GetAccessKeyCore()
The string that contains the access key.
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationControlType().
protected override AutomationControlType GetAutomationControlTypeCore()
AutomationControlType
The control type.
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationId().
protected override string GetAutomationIdCore()
The string that contains the identifier.
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetBoundingRectangle().
protected override Rect GetBoundingRectangleCore()
Rect
The bounding rectangle.
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetChildren().
protected override List<AutomationPeer> GetChildrenCore()
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.
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetClickablePoint().
protected override Point GetClickablePointCore()
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().
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetItemStatus().
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetItemType().
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetLabeledBy().
protected override AutomationPeer GetLabeledByCore()
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 .
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetName().
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.GetOrientation().
protected override AutomationOrientation GetOrientationCore()
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.
public override object GetPattern(PatternInterface patternInterface)
A value from the System.Windows.Automation.Peers.PatternInterface enumeration.
Returns: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().
protected override bool HasKeyboardFocusCore()
True if the element has keyboard focus; otherwise, false.
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.IsContentElement().
protected override bool IsContentElementCore()
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().
protected override bool IsControlElementCore()
True if the element is a control; otherwise, false.
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.IsEnabled().
protected override bool IsEnabledCore()
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().
protected override bool IsKeyboardFocusableCore()
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().
protected override bool IsOffscreenCore()
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().
protected override bool IsPasswordCore()
True if the element contains sensitive content; otherwise, false.
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.IsRequiredForForm().
protected override bool IsRequiredForFormCore()
True if the element is must be completed; otherwise, false.
Removes the current element from the collection of selected items.
public void RemoveFromSelection()
public void ScrollIntoView()
Deselects any selected items and then selects the current element.
public void Select()
When overridden in a derived class, is called by System.Windows.Automation.Peers.AutomationPeer.SetFocus().
protected override void SetFocusCore()