Class
GanttTaskProvider

Provides a class that represents a provider for current item of the RadGanttView grid section.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.GanttView.dll

Syntax:

cs-api-definition
public class GanttTaskProvider : SimpleProviderBase, IRawElementProviderSimple, ISelectionItemProvider

Inheritance: objectSimpleProviderBaseGanttTaskProvider

Implements: IRawElementProviderSimpleISelectionItemProvider

Inherited Members SimpleProviderBase.GetPropertyValue(int)SimpleProviderBase.HostRawElementProviderSimpleProviderBase.ProviderOptions

Constructors

GanttTaskProvider(IGanttTask, GanttItemsPresenter)

Initializes a new instance of the GanttTaskProvider class.

Declaration

cs-api-definition
public GanttTaskProvider(IGanttTask ganttTask, GanttItemsPresenter presenter)

Parameters

ganttTask

IGanttTask

presenter

GanttItemsPresenter

Properties

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()

GetName()

Gets the content of the associated Gantt task.

Declaration

cs-api-definition
protected override string GetName()

Returns

string

The title of the Gantt task.

Overrides SimpleProviderBase.GetName()

GetPatternProvider(int)

Returns the object that supports the specified pattern.

Declaration

cs-api-definition
public override object GetPatternProvider(int patternId)

Parameters

patternId

int

ID of the pattern.

Returns

object

Object that implements IInvokeProvider.

Overrides SimpleProviderBase.GetPatternProvider(int)

RemoveFromSelection()

Removes the current element from the collection of selected items.

Declaration

cs-api-definition
public void RemoveFromSelection()

Select()

Deselects any selected items and then selects the current element.

Declaration

cs-api-definition
public void Select()