Udostępnij za pośrednictwem


AutomationPeer.GetOrientationCore Method

Definition

Provides the peer's behavior when a Microsoft UI Automation client calls GetOrientation or an equivalent Microsoft UI Automation client API.

protected:
 virtual AutomationOrientation GetOrientationCore() = GetOrientationCore;
AutomationOrientation GetOrientationCore();
protected virtual AutomationOrientation GetOrientationCore();
function getOrientationCore()
Protected Overridable Function GetOrientationCore () As AutomationOrientation

Returns

The orientation of the control.

Remarks

The base AutomationPeer implementation returns None. Peers that represent items may modify this to report information from their container. ScrollBarAutomationPeer and SliderAutomationPeer both have a pattern they can access that knows about orientation, so these peers can return a determined value. Test the existing return value in the peer that you are using or overriding and then override that behavior if necessary.

Applies to

See also