ButtonAutomationPeer クラス

定義

ボタン型を Microsoft UI オートメーションに公開します。

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ButtonAutomationPeer : ButtonBaseAutomationPeer, IInvokeProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class ButtonAutomationPeer : ButtonBaseAutomationPeer, IInvokeProvider
Public Class ButtonAutomationPeer
Inherits ButtonBaseAutomationPeer
Implements IInvokeProvider
継承
派生
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

Windows ランタイム Button クラスは、OnCreateAutomationPeer 定義として新しい ButtonAutomationPeer を作成します。 Button からカスタム クラスを派生させ、カスタム クラスで有効にした追加機能のオートメーション サポートを追加する場合は、ButtonAutomationPeer からオートメーション ピアを派生させます。 次 に、OnCreateAutomationPeer をオーバーライドして、カスタム ピアを返すようにします。

ButtonAutomationPeer での既定のピア実装とオーバーライド

ButtonAutomationPeer には、関連付けられた AutomationPeer メソッドが Microsoft UI オートメーション クライアントにピア固有の情報を提供するように、Core メソッドのオーバーライドがあります。

このピアには、即時基本クラス ButtonBaseAutomationPeer があり、上記のオーバーライド以外の動作を継承します。 特に、 GetName は現在の Content の検査に基づいて文字列値を返 します。 詳細については、「 ButtonBaseAutomationPeer」を参照してください。

ピアには、基本 FrameworkElementAutomationPeer クラスによって提供される他の動作もあります。 詳細については、「 カスタム オートメーション ピア」の「FrameworkElementAutomationPeer での基本実装」セクションを参照してください。

ButtonAutomationPeer 派生クラス

ButtonAutomationPeer は、 AppBarButtonAutomationPeer の親クラスです。

コンストラクター

ButtonAutomationPeer(Button)

ButtonAutomationPeer クラスの新しいインスタンスを初期化します。

プロパティ

Dispatcher

このオブジェクトが関連付けられている CoreDispatcher を取得します。 CoreDispatcher は、コードが UI 以外のスレッドによって開始された場合でも、UI スレッド上の DependencyObject にアクセスできる機能を表します。

(継承元 DependencyObject)
EventsSource

この AutomationPeer から取得されるすべてのイベントのソースとしてオートメーション クライアントに報告される AutomationPeer を取得または設定します。 「解説」を参照してください。

(継承元 AutomationPeer)
Owner

この FrameworkElementAutomationPeer に関連付けられている UIElement 所有者を取得します。

(継承元 FrameworkElementAutomationPeer)

メソッド

ClearValue(DependencyProperty)

依存関係プロパティのローカル値をクリアします。

(継承元 DependencyObject)
GetAcceleratorKey()

UI オートメーション ピアに関連付けられているオブジェクトのアクセラレータ キーの組み合わせを取得します。

(継承元 AutomationPeer)
GetAcceleratorKeyCore()

Microsoft UI オートメーション クライアントが GetAcceleratorKey または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetAccessKey()

オートメーション ピアに関連付けられている要素のアクセス キーを取得します。

(継承元 AutomationPeer)
GetAccessKeyCore()

Microsoft UI オートメーション クライアントが GetAccessKey または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetAnimationBaseValue(DependencyProperty)

依存関係プロパティに対して確立された基本値を返します。これは、アニメーションがアクティブでない場合に適用されます。

(継承元 DependencyObject)
GetAnnotations()

現在のオートメーション ピアの UI オートメーション注釈の一覧への参照を取得します。

(継承元 AutomationPeer)
GetAnnotationsCore()

Microsoft UI オートメーション クライアントが GetAnnotations または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetAutomationControlType()

UI オートメーション ピアに関連付けられている要素のコントロール型を取得します。

(継承元 AutomationPeer)
GetAutomationControlTypeCore()

Microsoft UI オートメーション クライアントが GetAutomationControlType または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetAutomationId()

オートメーション ピアに関連付けられている要素の AutomationId を 取得します。

(継承元 AutomationPeer)
GetAutomationIdCore()

Microsoft UI オートメーション クライアントが GetAutomationId または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetBoundingRectangle()

オートメーション ピアに関連付けられている要素の画面座標を表す Rect オブジェクトを取得します。

(継承元 AutomationPeer)
GetBoundingRectangleCore()

Microsoft UI オートメーション クライアントが GetBoundingRectangle または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetChildren()

UI オートメーション ツリーでオートメーション ピアの直接の子要素として表される子要素のコレクションを取得します。

(継承元 AutomationPeer)
GetChildrenCore()

Microsoft UI オートメーション クライアントが GetChildren または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetClassName()

AutomationControlType で使用される名前を取得し、この AutomationPeer で表されるコントロールを区別します。

(継承元 AutomationPeer)
GetClassNameCore()

Microsoft UI オートメーション クライアントが GetClassName または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetClickablePoint()

マウス クリックに応答するオートメーション ピアに関連付けられている 要素のポイントを取得します。

(継承元 AutomationPeer)
GetClickablePointCore()

Microsoft UI オートメーション クライアントが GetClickablePoint または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetControlledPeers()

Microsoft UI オートメーション クライアントが GetControlledPeers または同等の Microsoft UI オートメーション クライアント API (UIA_ControllerForPropertyIdによって識別されるプロパティ値の取得など) を呼び出したときのピアの動作 提供します。

(継承元 AutomationPeer)
GetControlledPeersCore()

現在のオートメーション ピアの制御されたピアの一覧を取得します。

(継承元 AutomationPeer)
GetCulture()

GetCultureCore を呼び出して、オートメーション ピアに関連付けられている要素のカルチャ値を取得します。

(継承元 AutomationPeer)
GetCultureCore()

オートメーション ピアに関連付けられている要素のカルチャ値を取得します。

(継承元 AutomationPeer)
GetDescribedByCore()

オートメーション要素に関する詳細情報を提供する要素のコレクションを取得します。

(継承元 AutomationPeer)
GetElementFromPoint(Point)

指定したポイントから要素を取得します。

(継承元 AutomationPeer)
GetElementFromPointCore(Point)

Microsoft UI オートメーション クライアントが GetElementFromPoint または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetFlowsFromCore()

Microsoft UI オートメーション クライアントが GetFlowsFrom または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetFlowsToCore()

Microsoft UI オートメーション クライアントが GetFlowsTo または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetFocusedElement()

現在フォーカスがある要素を取得します。

(継承元 AutomationPeer)
GetFocusedElementCore()

Microsoft UI オートメーション クライアントが GetFocusedElement または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetFullDescription()

イメージやイメージ コントロールなどの実際の外観または内容を記述するローカライズされた文字列を取得します。

(継承元 AutomationPeer)
GetFullDescriptionCore()

Microsoft UI オートメーション クライアントが GetFullDescription または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetHeadingLevel()

このオートメーション ピアに関連付けられている UI オートメーション要素の見出しレベルを取得します。

(継承元 AutomationPeer)
GetHeadingLevelCore()

Microsoft UI オートメーション クライアントが GetHeadingLevel または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetHelpText()

オートメーション ピアに関連付けられているコントロールの機能を説明するテキストを取得します。

(継承元 AutomationPeer)
GetHelpTextCore()

Microsoft UI オートメーション クライアントが GetHelpText または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetItemStatus()

オートメーション ピアに関連付けられている要素の表示状態を表すテキストを取得します。

(継承元 AutomationPeer)
GetItemStatusCore()

Microsoft UI オートメーション クライアントが GetItemStatus または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetItemType()

要素が表す項目の種類を表す文字列を取得します。

(継承元 AutomationPeer)
GetItemTypeCore()

Microsoft UI オートメーション クライアントが GetItemType または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetLabeledBy()

要素を対象とする UIElementAutomationPeer を取得します。

(継承元 AutomationPeer)
GetLabeledByCore()

Microsoft UI オートメーション クライアントが GetLabeledBy または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetLandmarkType()

このオートメーション ピアのランドマークの種類を取得します。

(継承元 AutomationPeer)
GetLandmarkTypeCore()

Microsoft UI オートメーション クライアントが GetLandmarkType または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetLevel()

オートメーション ピアに関連付けられている要素のレベル (階層) の 1 から始まる整数を返します。

(継承元 AutomationPeer)
GetLevelCore()

Microsoft UI オートメーション クライアントが GetLevel または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetLiveSetting()

UI オートメーション ピアに関連付けられているオブジェクトのライブ設定通知動作情報を取得します。

(継承元 AutomationPeer)
GetLiveSettingCore()

Microsoft UI オートメーション クライアントが GetLiveSetting または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetLocalizedControlType()

このオートメーション ピアに関連付けられているコントロールの AutomationControlType 値を表すローカライズされた文字列を取得します。

(継承元 AutomationPeer)
GetLocalizedControlTypeCore()

Microsoft UI オートメーション クライアントが GetLocalizedControlType または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetLocalizedLandmarkType()

このオートメーション ピアに関連付けられている要素の AutomationLandmarkType 値を表すローカライズされた文字列を取得します。

(継承元 AutomationPeer)
GetLocalizedLandmarkTypeCore()

Microsoft UI オートメーション クライアントが GetLocalizedLandmarkType または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetName()

このオートメーション ピアに関連付けられている要素を説明するテキストを取得します。 Microsoft UI オートメーション の値は、Microsoft UI オートメーション フレームワークと対話してアプリの UI を表すときに、ほとんどの支援テクノロジで使用される主な識別子です。

(継承元 AutomationPeer)
GetNameCore()

Microsoft UI オートメーション クライアントが GetName または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetOrientation()

コントロールの向きが明示的に設定されている場合にその向きを示す値を取得します。

(継承元 AutomationPeer)
GetOrientationCore()

Microsoft UI オートメーション クライアントが GetOrientation または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetParent()

この AutomationPeer の親である AutomationPeer を取得します。

(継承元 AutomationPeer)
GetPattern(PatternInterface)

指定した PatternInterface に関連付けられているコントロール パターンを取得します。

(継承元 AutomationPeer)
GetPatternCore(PatternInterface)

Microsoft UI オートメーション クライアントが GetPattern または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetPeerFromPoint(Point)

指定したポイントから AutomationPeer を取得します。

(継承元 AutomationPeer)
GetPeerFromPointCore(Point)

Microsoft UI オートメーション クライアントが GetPeerFromPoint または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetPositionInSet()

オートメーション ピアに関連付けられている要素のセット内の序数位置の 1 から始まる整数を返します。

(継承元 AutomationPeer)
GetPositionInSetCore()

Microsoft UI オートメーション クライアントが GetPositionInSet または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetSizeOfSet()

オートメーション ピアに関連付けられている要素が配置されているセットのサイズの 1 から始まる整数を返します。

(継承元 AutomationPeer)
GetSizeOfSetCore()

Microsoft UI オートメーション クライアントが GetSizeOfSet または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
GetValue(DependencyProperty)

DependencyObject から依存関係プロパティの現在の有効な値を返します。

(継承元 DependencyObject)
HasKeyboardFocus()

このオートメーション ピアに関連付けられている要素に現在キーボード フォーカスがあるかどうかを示す値を取得します。

(継承元 AutomationPeer)
HasKeyboardFocusCore()

Microsoft UI オートメーション クライアントが HasKeyboardFocus または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
InvalidatePeer()

AutomationPeer のメインプロパティの再計算をトリガーし、プロパティが変更された場合に PropertyChanged 通知をオートメーション クライアントに送信します。

(継承元 AutomationPeer)
Invoke()

オートメーション ピアに関連付けられているボタンをクリックする要求を送信します。

IsContentElement()

この Automation Peer に関連付けられている要素が、ユーザーに提示されるデータを含むかどうかを示す値を取得します。

(継承元 AutomationPeer)
IsContentElementCore()

Microsoft UI オートメーション クライアントが IsContentElement または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
IsControlElement()

要素が対話型としてユーザーによって認識されるか、GUI のコントロールの論理構造に寄与していると認識されるかを示す値を取得します。

(継承元 AutomationPeer)
IsControlElementCore()

Microsoft UI オートメーション クライアントが IsControlElement または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
IsDataValidForForm()

入力した値または選択した値がオートメーション要素に関連付けられているフォーム ルールに対して有効かどうかを示すブール値を取得します。

(継承元 AutomationPeer)
IsDataValidForFormCore()

Microsoft UI オートメーション クライアントが IsDataValidForForm または同等の Microsoft UI オートメーション クライアント API にアクセスした場合のピアの動作を提供します。

(継承元 AutomationPeer)
IsDialog()

このオートメーション ピアに関連付けられている要素がダイアログ ウィンドウかどうかを示す値を取得します。

(継承元 AutomationPeer)
IsDialogCore()

Microsoft UI オートメーション クライアントが IsDialog または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
IsEnabled()

このオートメーション ピアに関連付けられている要素で対話がサポートされるかどうかを示す値を取得します。

(継承元 AutomationPeer)
IsEnabledCore()

Microsoft UI オートメーション クライアントが IsEnabled または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
IsKeyboardFocusable()

要素がキーボード フォーカスを受け入れることができるかどうかを示す値を取得します。

(継承元 AutomationPeer)
IsKeyboardFocusableCore()

Microsoft UI オートメーション クライアントが IsKeyboardFocusable または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
IsOffscreen()

要素が画面から外れているかどうかを示す値を取得します。

(継承元 AutomationPeer)
IsOffscreenCore()

Microsoft UI オートメーション クライアントが IsOffscreen または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
IsPassword()

機密情報が要素に格納されているかどうか示す値を取得します。

(継承元 AutomationPeer)
IsPasswordCore()

Microsoft UI オートメーション クライアントが IsPassword または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
IsPeripheral()

オートメーション要素が周辺機器 UI を表すかどうかを示すブール値を取得します。

(継承元 AutomationPeer)
IsPeripheralCore()

Microsoft UI オートメーション クライアントが IsPeripheral または同等の Microsoft UI オートメーション クライアント API にアクセスした場合のピアの動作を提供します。

(継承元 AutomationPeer)
IsRequiredForForm()

このピアに関連付けられている要素がフォームの必須要素かどうかを示す値を取得します。

(継承元 AutomationPeer)
IsRequiredForFormCore()

Microsoft UI オートメーション クライアントが IsRequiredForForm または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
Navigate(AutomationNavigationDirection)

UI オートメーション ツリー内の指定した方向の要素を取得します。

(継承元 AutomationPeer)
NavigateCore(AutomationNavigationDirection)

Microsoft UI オートメーション クライアントが Navigate または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
PeerFromProvider(IRawElementProviderSimple)

指定した IRawElementProviderSimple プロキシの AutomationPeer を取得します。

(継承元 AutomationPeer)
ProviderFromPeer(AutomationPeer)

指定した AutomationPeerIRawElementProviderSimple プロキシを取得します。

(継承元 AutomationPeer)
RaiseAutomationEvent(AutomationEvents)

オートメーション イベントを発生させます。

(継承元 AutomationPeer)
RaiseNotificationEvent(AutomationNotificationKind, AutomationNotificationProcessing, String, String)

通知イベントを開始します。

(継承元 AutomationPeer)
RaisePropertyChangedEvent(AutomationProperty, Object, Object)

変更されたプロパティ値をオートメーション クライアントに通知するイベントを発生させます。

(継承元 AutomationPeer)
RaiseStructureChangedEvent(AutomationStructureChangeType, AutomationPeer)

ツリー構造が変更されたことを Microsoft UI オートメーション コアに通知するイベントを発生させます。

(継承元 AutomationPeer)
RaiseTextEditTextChangedEvent(AutomationTextEditChangeType, IVectorView<String>)

テキスト コントロールがプログラムによってテキストを変更したことを Microsoft UI オートメーション コアに通知するイベントを発生させます。

(継承元 AutomationPeer)
ReadLocalValue(DependencyProperty)

ローカル値が設定されている場合は、依存関係プロパティのローカル値を返します。

(継承元 DependencyObject)
RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)

この DependencyObject インスタンスの特定の DependencyProperty に対する変更をリッスンするための通知関数を登録します。

(継承元 DependencyObject)
SetFocus()

このオートメーション ピアに関連付けられている要素にキーボード フォーカスを設定します。

(継承元 AutomationPeer)
SetFocusCore()

Microsoft UI オートメーション クライアントが SetFocus または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
SetParent(AutomationPeer)

この AutomationPeer の親である AutomationPeer を設定します。

(継承元 AutomationPeer)
SetValue(DependencyProperty, Object)

DependencyObject の依存関係プロパティのローカル値を設定します。

(継承元 DependencyObject)
ShowContextMenu()

owner 要素で使用できるコンテキスト メニューを表示します。

(継承元 AutomationPeer)
ShowContextMenuCore()

Microsoft UI オートメーション クライアントが ShowContextMenu または同等の Microsoft UI オートメーション クライアント API を呼び出すときのピアの動作を提供します。

(継承元 AutomationPeer)
UnregisterPropertyChangedCallback(DependencyProperty, Int64)

RegisterPropertyChangedCallback を呼び出して以前に登録した変更通知を取り消します。

(継承元 DependencyObject)

適用対象

こちらもご覧ください