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

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:

C#
public class GanttTimeLineAutomationPeer : FrameworkElementAutomationPeer, IScrollProvider

Inheritance: objectGanttTimeLineAutomationPeer

Implements: IScrollProvider

Constructors

Initializes a new instance of the GanttTimeLineAutomationPeer class.

C#
public GanttTimeLineAutomationPeer(GanttItemsPresenter presenter)
Parameters:presenterGanttItemsPresenter

The owner.

Properties

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

C#
public bool HorizontallyScrollable { get; }
Property Value:

true if the control can scroll horizontally; otherwise false.

Gets the current horizontal scroll position.

C#
public double HorizontalScrollPercent { get; }
Property Value:

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

Gets the current horizontal view size.

C#
public double HorizontalViewSize { get; }
Property Value:

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

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

C#
public bool VerticallyScrollable { get; }
Property Value:

true if the control can scroll vertically; otherwise false.

Gets the current vertical scroll position.

C#
public double VerticalScrollPercent { get; }
Property Value:

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

Gets the vertical view size.

C#
public double VerticalViewSize { get; }
Property Value:

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

Methods

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

C#
protected override List<AutomationPeer> GetChildrenCore()
Returns:

List<AutomationPeer>

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

When overridden in a derived class, is called by .

C#
protected override string GetLocalizedControlTypeCore()
Returns:

string

The type of the control.

Gets the pattern.

C#
public override object GetPattern(PatternInterface patternInterface)
Parameters:patternInterfacePatternInterfaceReturns:

object

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

C#
public void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
Parameters:horizontalAmountScrollAmount

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.

verticalAmountScrollAmount

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.

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

C#
public void SetScrollPercent(double horizontalPercent, double verticalPercent)
Parameters:horizontalPercentdouble

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.

verticalPercentdouble

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.