ItemAutomationPeer クラス

定義

Items コレクション内のデータ項目を 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 ItemAutomationPeer : AutomationPeer, IVirtualizedItemProvider
[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 ItemAutomationPeer : AutomationPeer, IVirtualizedItemProvider
Public Class ItemAutomationPeer
Inherits AutomationPeer
Implements IVirtualizedItemProvider
継承
Object IInspectable DependencyObject AutomationPeer ItemAutomationPeer
派生
属性
実装

Windows の要件

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

注釈

ItemAutomationPeer は、関連付けられたコントロール クラスではなく、項目コントロール ロジックと ItemsControlAutomationPeer から生成されます。

ItemAutomationPeer には、一般的なピア実装 API に加えて、コンテナー ピアを参照する ItemsControlAutomationPeer プロパティがあります。 コンテナー ピアは、ItemAutomationPeer に対して呼び出される AutomationPeer メソッドのロジックを提供する可能性があります。 他のピアの Owner プロパティと同様の目的で Item プロパティもあります (このピアがオートメーションの公開を提供するオブジェクトへの参照を提供します)。 これらの値はどちらも ItemAutomationPeer コンストラクターで設定する必要があります。

ItemAutomationPeer は、IVirtualizedItemProvider コントロール パターンをサポートするために Realize メソッドを実装します。 クライアントは、フレームワークの同等のパターン アクセスを Realize に呼び出して、仮想化されていない結果を取得できます。 これにより、オートメーション ツリー ビューの項目に関する詳細情報が生成されます。

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

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

  • GetPattern は、ピアが PatternInterface.VirtualizedItem (IVirtualizedItemProvider) をサポートしていることを報告します。 また、項目コンテナーのサポートされているパターンに関する情報を報告する "GetContainerPeer" ロジックもあります。
  • GetClassName では 、"GetContainerPeer" ロジックを使用してクラス名情報を取得します。 コンテナー ピアがない場合、 GetClassName を 呼び出すと ElementNotAvailableException がスローされます。
  • GetName は "GetContainerPeer" ロジックを使用しますが、コンテナー ピアが存在しない場合は、基本的な ToString() ロジックを使用して、項目のコンテンツから既定のオートメーション名を生成しようとします。
  • GetAutomationControlType では、"GetContainerPeer" ロジックを使用してコントロールの型情報を取得します。 コンテナー ピアがない場合は、 AutomationControlType.ListItem を返します。
  • "GetContainerPeer" ロジックは、可能であれば、他の ほとんどの AutomationPeer メソッドをコンテナー ピア実装から転送するために使用されます。 たとえば、IsControlElement は最初にコンテナー ピアをチェック可能性があります。 使用可能なコンテナー ピアがない場合、これらの AutomationPeer メソッドの一部では ElementNotAvailableException がスローされます。 これは、FrameworkElementAutomationPeer を基底クラスとして使用しない Microsoft UI オートメーションのWindows ランタイムサポートの唯一のピア クラスの 1 つです。

ItemAutomationPeer 派生クラス

ItemAutomationPeer は SelectorItemAutomationPeer の親クラスです。

コンストラクター

ItemAutomationPeer(Object, ItemsControlAutomationPeer)

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

プロパティ

Dispatcher

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

(継承元 DependencyObject)
EventsSource

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

(継承元 AutomationPeer)
Item

この ItemAutomationPeer に関連付けられている Items コレクション内のデータ項目を取得します。

ItemsControlAutomationPeer

Items コレクションを保持する ItemsControl に関連付けられている ItemsControlAutomationPeer を取得します。

メソッド

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)
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 Automation コアに通知するイベントを発生させます。

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

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

(継承元 AutomationPeer)
ReadLocalValue(DependencyProperty)

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

(継承元 DependencyObject)
Realize()

仮想項目に Microsoft UI オートメーション要素として完全にアクセスできるようにします。

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)

適用対象

こちらもご覧ください