IGridItemProvider.ContainingGrid 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取实现 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