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
コントロール パターンを指定する列挙体。
返品
DataGridCellItemAutomationPeerがサポートされている値の場合は現在のpatternInterface オブジェクト。それ以外の場合は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です。