Class
GanttTimeLineAutomationPeer

Provides a class that exposes the time line section of RadGanttView to UI Automation.

Definition

Namespace:Telerik.Windows.Automation.Peers

Assembly:Telerik.Windows.Controls.GanttView.dll

Syntax:

cs-api-definition
public class GanttTimeLineAutomationPeer : FrameworkElementAutomationPeer, IScrollProvider

Inheritance: objectGanttTimeLineAutomationPeer

Implements: IScrollProvider

Constructors

GanttTimeLineAutomationPeer(GanttItemsPresenter)

Initializes a new instance of the GanttTimeLineAutomationPeer class.

Declaration

cs-api-definition
public GanttTimeLineAutomationPeer(GanttItemsPresenter presenter)

Parameters

presenter

GanttItemsPresenter

The owner.

Properties

HorizontalScrollPercent

Gets the current horizontal scroll position.

Declaration

cs-api-definition
public double HorizontalScrollPercent { get; }

Property Value

double

The horizontal scroll position as a percentage of the total content area within the control.

HorizontalViewSize

Gets the current horizontal view size.

Declaration

cs-api-definition
public double HorizontalViewSize { get; }

Property Value

double

The horizontal size of the viewable region as a percentage of the total content area within the control.

HorizontallyScrollable

Gets a value that indicates whether the control can scroll horizontally.

Declaration

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

Property Value

bool

true if the control can scroll horizontally; otherwise false.

VerticalScrollPercent

Gets the current vertical scroll position.

Declaration

cs-api-definition
public double VerticalScrollPercent { get; }

Property Value

double

The vertical scroll position as a percentage of the total content area within the control.

VerticalViewSize

Gets the vertical view size.

Declaration

cs-api-definition
public double VerticalViewSize { get; }

Property Value

double

The vertical size of the viewable region as a percentage of the total content area within the control.

VerticallyScrollable

Gets a value that indicates whether the control can scroll vertically.

Declaration

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

Property Value

bool

true if the control can scroll vertically; otherwise false.

Methods

GetChildrenCore()

Gets the collection of child elements of the System.Windows.UIElement that is associated with this System.Windows.Automation.Peers.UIElementAutomationPeer. This method 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>

A list of child System.Windows.Automation.Peers.AutomationPeer elements.

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.

GetPattern(PatternInterface)

Gets the pattern.

Declaration

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

Parameters

patternInterface

PatternInterface

Returns

object

Scroll(ScrollAmount, ScrollAmount)

Scrolls the visible region of the content area horizontally and vertically.

Declaration

cs-api-definition
public void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)

Parameters

horizontalAmount

ScrollAmount

The horizontal increment specific to the control. System.Windows.Automation.ScrollPatternIdentifiers.NoScroll should be passed in if the control cannot be scrolled in this direction.

verticalAmount

ScrollAmount

The vertical increment specific to the control. System.Windows.Automation.ScrollPatternIdentifiers.NoScroll should be passed in if the control cannot be scrolled in this direction.

SetScrollPercent(double, double)

Sets the horizontal and vertical scroll position as a percentage of the total content area within the control.

Declaration

cs-api-definition
public void SetScrollPercent(double horizontalPercent, double verticalPercent)

Parameters

horizontalPercent

double

The horizontal position as a percentage of the content area's total range. System.Windows.Automation.ScrollPatternIdentifiers.NoScroll should be passed in if the control cannot be scrolled in this direction.

verticalPercent

double

The vertical position as a percentage of the content area's total range. System.Windows.Automation.ScrollPatternIdentifiers.NoScroll should be passed in if the control cannot be scrolled in this direction.