DataGridCellItemAutomationPeer.GetPattern(PatternInterface) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
このオートメーション ピアに関連付けられている要素について、指定されたコントロール パターンをサポートするオブジェクトを返します。
public:
override System::Object ^ GetPattern(System::Windows::Automation::Peers::PatternInterface patternInterface);
public override object GetPattern (System.Windows.Automation.Peers.PatternInterface patternInterface);
override this.GetPattern : System.Windows.Automation.Peers.PatternInterface -> obj
Public Overrides Function GetPattern (patternInterface As PatternInterface) As Object
パラメーター
- patternInterface
- PatternInterface
コントロール パターンを指定する列挙値。
戻り値
patternInterface の値がサポートされている場合は、現在の DataGridCellItemAutomationPeer オブジェクト。それ以外の場合は null。
注釈
次のいずれかのケースが発生した場合、このメソッドは現在 DataGridCellItemAutomationPeer のオブジェクトを返します。
patternInterfaceは PatternInterface.Invoke 、 DataGridCell これに DataGridCellItemAutomationPeer 関連付けられているオブジェクトが読み取り専用ではありません。patternInterfaceは PatternInterface.Value 、 DataGridCell これに DataGridCellItemAutomationPeer 関連付けられている行が、オブジェクト内の新しい項目のプレースホルダーである行の DataGrid 一部ではありません。patternInterfaceが PatternInterface.SelectionItem 選択され、 DataGridCell これに DataGridCellItemAutomationPeer 関連付けられている項目を選択できます。patternInterfaceが PatternInterface.ScrollItemです。patternInterfaceが PatternInterface.GridItemです。patternInterfaceが PatternInterface.TableItemです。