DocumentAutomationPeer クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
UI オートメーションに Document コントロール型を公開します。
public ref class DocumentAutomationPeer : System::Windows::Automation::Peers::ContentTextAutomationPeer
public class DocumentAutomationPeer : System.Windows.Automation.Peers.ContentTextAutomationPeer
type DocumentAutomationPeer = class
inherit ContentTextAutomationPeer
Public Class DocumentAutomationPeer
Inherits ContentTextAutomationPeer
- 継承
注釈
は DocumentAutomationPeer ドキュメントを表し、 を TextPatternサポートします。 や などのFixedDocumentFlowDocumentオブジェクトには、画像やハイパーリンクなどの埋め込みオブジェクトを含めることができます。 最初に、ドキュメントの子要素を取得しようとすると、 DocumentAutomationPeer.GetChildrenCore 埋め込みオブジェクトは返されません。 埋め込み要素を取得するには、 から を TextPatternRange 取得し、 を TextPattern 呼び出します TextPatternRange.GetChildren。 TextPatternRange.GetChildrenが呼び出されると、 によってDocumentAutomationPeer.GetChildrenCore返される 内のすべてのTextPatternRange要素が呼び出されます。
Note
ドキュメントが であることがわかっている場合を除き、 FlowDocumentプロパティで をTextPattern.DocumentRange呼び出GetChildrenさないでください。 ドキュメントがネットワーク上の場所から読み込まれる場合、ドキュメント全体で を呼び出すと GetChildren 、リソースが多くなります。 代わりに、ドキュメントの一部を表す を返TextPatternRangeす のいずれかの TextPattern メソッドを使用する必要があります。
コンストラクター
DocumentAutomationPeer(FrameworkContentElement) |
DocumentAutomationPeer クラスの新しいインスタンスを初期化します。 |
プロパティ
Dispatcher |
この Dispatcher が関連付けられている DispatcherObject を取得します。 (継承元 DispatcherObject) |
EventsSource |
この AutomationPeer に由来するすべてのイベントのソースとして、オートメーション クライアントに報告される AutomationPeer を取得または設定します。 (継承元 AutomationPeer) |
IsHwndHost |
Windows Presentation Foundation (WPF) でこのAutomationPeerホスト |
Owner |
この ContentElementAutomationPeer に関連付けられている ContentElement を取得します。 (継承元 ContentElementAutomationPeer) |
メソッド
適用対象
こちらもご覧ください
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示