ClassGanttTimeLineAutomationPeer
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:
public class GanttTimeLineAutomationPeer : FrameworkElementAutomationPeer, IScrollProvider
Inheritance: objectGanttTimeLineAutomationPeer
Implements:
Constructors
GanttTimeLineAutomationPeer(GanttItemsPresenter)
Initializes a new instance of the GanttTimeLineAutomationPeer class.
Declaration
public GanttTimeLineAutomationPeer(GanttItemsPresenter presenter)
Parameters
presenter
The owner.
Properties
HorizontalScrollPercent
Gets the current horizontal scroll position.
Declaration
public double HorizontalScrollPercent { get; }
Property Value
The horizontal scroll position as a percentage of the total content area within the control.
HorizontalViewSize
Gets the current horizontal view size.
Declaration
public double HorizontalViewSize { get; }
Property Value
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
public bool HorizontallyScrollable { get; }
Property Value
true if the control can scroll horizontally; otherwise false.
VerticalScrollPercent
Gets the current vertical scroll position.
Declaration
public double VerticalScrollPercent { get; }
Property Value
The vertical scroll position as a percentage of the total content area within the control.
VerticalViewSize
Gets the vertical view size.
Declaration
public double VerticalViewSize { get; }
Property Value
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
public bool VerticallyScrollable { get; }
Property Value
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
[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
protected override string GetLocalizedControlTypeCore()
Returns
The type of the control.
GetPattern(PatternInterface)
Gets the pattern.
Declaration
public override object GetPattern(PatternInterface patternInterface)
Parameters
patternInterface
PatternInterface
Returns
Scroll(ScrollAmount, ScrollAmount)
Scrolls the visible region of the content area horizontally and vertically.
Declaration
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
public void SetScrollPercent(double horizontalPercent, double verticalPercent)
Parameters
horizontalPercent
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
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.