语言

IGridItemProvider.ContainingGrid 属性

定义

获取实现 IGridProvider 并表示单元格或项容器的UI 自动化提供程序。

public:
 property System::Windows::Automation::Provider::IRawElementProviderSimple ^ ContainingGrid { System::Windows::Automation::Provider::IRawElementProviderSimple ^ get(); };
public System.Windows.Automation.Provider.IRawElementProviderSimple ContainingGrid { get; }
member this.ContainingGrid : System.Windows.Automation.Provider.IRawElementProviderSimple
Public ReadOnly Property ContainingGrid As IRawElementProviderSimple

属性值

实现 GridPattern 并表示单元格或项容器的UI 自动化提供程序。

示例

以下示例代码返回一个对象,该对象存储为表示网格容器的内部变量。 此对象实现 IGridProvider 和 IRawElementProviderFragmentRoot。

IRawElementProviderSimple IGridItemProvider.ContainingGrid
{
    get 
    { 
        return ItemContainingGrid; 
    }
}
Private ReadOnly Property ContainingGrid() As IRawElementProviderSimple Implements IGridItemProvider.ContainingGrid
    Get
        Return ItemContainingGrid
    End Get
End Property

适用于

另请参阅