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