Class RichItemsControlAutomationPeer
Namespace: RichCanvas.Automation
Assembly: RichCanvas.dll
Exposes the RichCanvas.RichCanvas to UI Automation project.
public class RichItemsControlAutomationPeer : SelectorAutomationPeer, IItemContainerProvider, ISelectionProvider, IValueProvider, IScrollProvider
Inheritance
object ← DispatcherObject ← AutomationPeer ← UIElementAutomationPeer ← FrameworkElementAutomationPeer ← ItemsControlAutomationPeer ← SelectorAutomationPeer ← RichItemsControlAutomationPeer
Implements
IItemContainerProvider, ISelectionProvider, IValueProvider, IScrollProvider
Inherited Members
SelectorAutomationPeer.GetAutomationControlTypeCore(), SelectorAutomationPeer.GetPattern(PatternInterface), ItemsControlAutomationPeer.CreateItemAutomationPeer(object), ItemsControlAutomationPeer.FindOrCreateItemAutomationPeer(object), ItemsControlAutomationPeer.GetChildrenCore(), ItemsControlAutomationPeer.GetPattern(PatternInterface), ItemsControlAutomationPeer.IsVirtualized, FrameworkElementAutomationPeer.GetAutomationIdCore(), FrameworkElementAutomationPeer.GetHelpTextCore(), FrameworkElementAutomationPeer.GetNameCore(), UIElementAutomationPeer.CreatePeerForElement(UIElement), UIElementAutomationPeer.FromElement(UIElement), UIElementAutomationPeer.GetAcceleratorKeyCore(), UIElementAutomationPeer.GetAccessKeyCore(), UIElementAutomationPeer.GetAutomationControlTypeCore(), UIElementAutomationPeer.GetAutomationIdCore(), UIElementAutomationPeer.GetBoundingRectangleCore(), UIElementAutomationPeer.GetChildrenCore(), UIElementAutomationPeer.GetClassNameCore(), UIElementAutomationPeer.GetClickablePointCore(), UIElementAutomationPeer.GetHeadingLevelCore(), UIElementAutomationPeer.GetHelpTextCore(), UIElementAutomationPeer.GetItemStatusCore(), UIElementAutomationPeer.GetItemTypeCore(), UIElementAutomationPeer.GetLabeledByCore(), UIElementAutomationPeer.GetLiveSettingCore(), UIElementAutomationPeer.GetNameCore(), UIElementAutomationPeer.GetOrientationCore(), UIElementAutomationPeer.GetPattern(PatternInterface), UIElementAutomationPeer.GetPositionInSetCore(), UIElementAutomationPeer.GetSizeOfSetCore(), UIElementAutomationPeer.HasKeyboardFocusCore(), UIElementAutomationPeer.IsContentElementCore(), UIElementAutomationPeer.IsControlElementCore(), UIElementAutomationPeer.IsDialogCore(), UIElementAutomationPeer.IsEnabledCore(), UIElementAutomationPeer.IsKeyboardFocusableCore(), UIElementAutomationPeer.IsOffscreenCore(), UIElementAutomationPeer.IsPasswordCore(), UIElementAutomationPeer.IsRequiredForFormCore(), UIElementAutomationPeer.SetFocusCore(), UIElementAutomationPeer.Owner, AutomationPeer.GetAcceleratorKey(), AutomationPeer.GetAcceleratorKeyCore(), AutomationPeer.GetAccessKey(), AutomationPeer.GetAccessKeyCore(), AutomationPeer.GetAutomationControlType(), AutomationPeer.GetAutomationControlTypeCore(), AutomationPeer.GetAutomationId(), AutomationPeer.GetAutomationIdCore(), AutomationPeer.GetBoundingRectangle(), AutomationPeer.GetBoundingRectangleCore(), AutomationPeer.GetChildren(), AutomationPeer.GetChildrenCore(), AutomationPeer.GetClassName(), AutomationPeer.GetClassNameCore(), AutomationPeer.GetClickablePoint(), AutomationPeer.GetClickablePointCore(), AutomationPeer.GetControlledPeers(), AutomationPeer.GetControlledPeersCore(), AutomationPeer.GetHeadingLevel(), AutomationPeer.GetHeadingLevelCore(), AutomationPeer.GetHelpText(), AutomationPeer.GetHelpTextCore(), AutomationPeer.GetHostRawElementProviderCore(), AutomationPeer.GetItemStatus(), AutomationPeer.GetItemStatusCore(), AutomationPeer.GetItemType(), AutomationPeer.GetItemTypeCore(), AutomationPeer.GetLabeledBy(), AutomationPeer.GetLabeledByCore(), AutomationPeer.GetLiveSetting(), AutomationPeer.GetLiveSettingCore(), AutomationPeer.GetLocalizedControlType(), AutomationPeer.GetLocalizedControlTypeCore(), AutomationPeer.GetName(), AutomationPeer.GetNameCore(), AutomationPeer.GetOrientation(), AutomationPeer.GetOrientationCore(), AutomationPeer.GetParent(), AutomationPeer.GetPattern(PatternInterface), AutomationPeer.GetPeerFromPoint(Point), AutomationPeer.GetPeerFromPointCore(Point), AutomationPeer.GetPositionInSet(), AutomationPeer.GetPositionInSetCore(), AutomationPeer.GetSizeOfSet(), AutomationPeer.GetSizeOfSetCore(), AutomationPeer.HasKeyboardFocus(), AutomationPeer.HasKeyboardFocusCore(), AutomationPeer.InvalidatePeer(), AutomationPeer.IsContentElement(), AutomationPeer.IsContentElementCore(), AutomationPeer.IsControlElement(), AutomationPeer.IsControlElementCore(), AutomationPeer.IsDialog(), AutomationPeer.IsDialogCore(), AutomationPeer.IsEnabled(), AutomationPeer.IsEnabledCore(), AutomationPeer.IsKeyboardFocusable(), AutomationPeer.IsKeyboardFocusableCore(), AutomationPeer.IsOffscreen(), AutomationPeer.IsOffscreenCore(), AutomationPeer.IsPassword(), AutomationPeer.IsPasswordCore(), AutomationPeer.IsRequiredForForm(), AutomationPeer.IsRequiredForFormCore(), AutomationPeer.ListenerExists(AutomationEvents), AutomationPeer.PeerFromProvider(IRawElementProviderSimple), AutomationPeer.ProviderFromPeer(AutomationPeer), AutomationPeer.RaiseAsyncContentLoadedEvent(AsyncContentLoadedEventArgs), AutomationPeer.RaiseAutomationEvent(AutomationEvents), AutomationPeer.RaiseNotificationEvent(AutomationNotificationKind, AutomationNotificationProcessing, string, string), AutomationPeer.RaisePropertyChangedEvent(AutomationProperty, object, object), AutomationPeer.ResetChildrenCache(), AutomationPeer.SetFocus(), AutomationPeer.SetFocusCore(), AutomationPeer.EventsSource, AutomationPeer.IsHwndHost, DispatcherObject.Dispatcher, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
RichItemsControlAutomationPeer(RichCanvas)
Initializes a new RichCanvas.Automation.RichItemsControlAutomationPeer.
public RichItemsControlAutomationPeer(RichCanvas owner)
Parameters
owner
RichCanvas
Properties
HorizontalScrollPercent
Gets associated RichCanvas.RichCanvas.HorizontalOffset value.
public double HorizontalScrollPercent { get; }
Property Value
HorizontalViewSize
Gets associated RichCanvas.RichCanvas.ViewportSize.Width value.
public double HorizontalViewSize { get; }
Property Value
HorizontallyScrollable
Gets a value that indicates whether the control can scroll horizontally.
Returns: Always true.
public bool HorizontallyScrollable { get; }
Property Value
IsReadOnly
Gets a value that specifies whether the value of a control is read-only.
public bool IsReadOnly { get; }
Property Value
OwnerItemsControl
Gets the RichCanvas.RichCanvas that is associated with this RichCanvas.Automation.RichItemsControlAutomationPeer.
protected RichCanvas OwnerItemsControl { get; }
Property Value
Value
Gets the serialized json value of RichCanvas.Automation.ControlInformations.RichItemsControlData containing data about the associated RichCanvas.RichCanvas.
public string Value { get; }
Property Value
VerticalScrollPercent
Gets associated RichCanvas.RichCanvas.VerticalOffset value.
public double VerticalScrollPercent { get; }
Property Value
VerticalViewSize
Gets associated RichCanvas.RichCanvas.ViewportSize.Height value.
public double VerticalViewSize { get; }
Property Value
VerticallyScrollable
Gets a value that indicates whether the control can scroll vertically.
Returns: Always true.
public bool VerticallyScrollable { get; }
Property Value
Methods
CreateItemAutomationPeer(object)
When overridden in a derived class, creates a new instance of the System.Windows.Automation.Peers.ItemAutomationPeer for a data item in the System.Windows.Controls.ItemsControl.Items collection of this System.Windows.Controls.ItemsControl.
protected override ItemAutomationPeer CreateItemAutomationPeer(object item)
Parameters
item
object
The data item that is associated with this System.Windows.Automation.Peers.ItemAutomationPeer.
Returns
The new System.Windows.Automation.Peers.ItemAutomationPeer created.
GetAutomationControlTypeCore()
Gets the control type for the System.Windows.Controls.Primitives.Selector that is associated with this System.Windows.Automation.Peers.SelectorAutomationPeer. This method is called by System.Windows.Automation.Peers.AutomationPeer.GetAutomationControlType.
protected override AutomationControlType GetAutomationControlTypeCore()
Returns
The System.Windows.Automation.Peers.AutomationControlType.List enumeration value.
GetClassNameCore()
Gets the name 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.GetClassName.
protected override string GetClassNameCore()
Returns
An System.String.Empty string.
GetPattern(PatternInterface)
Gets the control pattern for the System.Windows.Controls.Primitives.Selector that is associated with this System.Windows.Automation.Peers.SelectorAutomationPeer.
public override object GetPattern(PatternInterface patternInterface)
Parameters
patternInterface
PatternInterface
A value in the enumeration.
Returns
If patternInterface
is System.Windows.Automation.Peers.PatternInterface.Selection, this method returns a pointer to the current instance; otherwise null.
Scroll(ScrollAmount, ScrollAmount)
Scrolls the visible region of the content area horizontally and vertically.
Using RichCanvas.Automation.RichItemsControlAutomationPeer.OwnerItemsControl implementation of System.Windows.Controls.Primitives.IScrollInfo.
public void Scroll(ScrollAmount horizontalAmount, ScrollAmount verticalAmount)
Parameters
horizontalAmount
ScrollAmount
verticalAmount
ScrollAmount
SetScrollPercent(double, double)
Sets the amount of vertical and horizontal offset on the RichCanvas.Automation.RichItemsControlAutomationPeer.OwnerItemsControl.
public void SetScrollPercent(double horizontalPercent, double verticalPercent)
Parameters
horizontalPercent
double
verticalPercent
double
SetValue(string)
Sets the value of a control.
public void SetValue(string value)
Parameters
value
string
The value to set. The provider is responsible for converting the value to the appropriate data type.
Exceptions
If locale-specific information is passed to a control in an incorrect format such as an incorrectly formatted date.
If a new value cannot be converted from a string to a format the control recognizes.
When an attempt is made to manipulate a control that is not enabled.