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

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:

C#
public class GanttTaskProvider : SimpleProviderBase, IRawElementProviderSimple, ISelectionItemProvider

Inheritance: objectSimpleProviderBaseGanttTaskProvider

Implements: IRawElementProviderSimpleISelectionItemProvider

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

Constructors

Initializes a new instance of the GanttTaskProvider class.

C#
public GanttTaskProvider(IGanttTask ganttTask, GanttItemsPresenter presenter)
Parameters:ganttTaskIGanttTaskpresenterGanttItemsPresenter

Properties

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

Gets the content of the associated Gantt task.

C#
protected override string GetName()
Returns:

string

The title of the Gantt task.

Overrides: SimpleProviderBase.GetName()

Returns the object that supports the specified pattern.

C#
public override object GetPatternProvider(int patternId)
Parameters:patternIdint

ID of the pattern.

Returns:

object

Object that implements IInvokeProvider.

Overrides: SimpleProviderBase.GetPatternProvider(int)

Removes the current element from the collection of selected items.

C#
public void RemoveFromSelection()

Deselects any selected items and then selects the current element.

C#
public void Select()