AutomationPeer.GetOrientationCore 方法

定義

當 Microsoft UI 自動化用戶端呼叫 GetOrientation 或對等的 Microsoft UI 自動化用戶端 API 時,提供對等的行為。

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

傳回

控制項的方向。

備註

基底 AutomationPeer 實作 會傳回 None。 代表專案的對等可能會修改此專案,以從其容器報告資訊。 ScrollBarAutomationPeerSliderAutomationPeer 都有可存取的模式,可知道方向,因此這些對等可以傳回已決定的值。 在您使用或覆寫的對等中測試現有的傳回值,然後視需要覆寫該行為。

適用於

另請參閱