语言

IDockProvider 接口

定义

公开方法和属性以支持UI 自动化客户端访问在停靠容器中公开其停靠属性的控件。

public interface class IDockProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("159bc72c-4ad3-485e-9637-d7052edf0146")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IDockProvider
public interface IDockProvider
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("159bc72c-4ad3-485e-9637-d7052edf0146")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IDockProvider = interface
type IDockProvider = interface
Public Interface IDockProvider
特性

注解

在必须支持 DockPattern 控件模式的UI 自动化提供程序上实现。

停靠容器是一个控件,它允许相对于停靠容器边界和容器内其他元素的水平和垂直排列子元素。

IDockProvider 不公开停靠容器的任何属性,也不公开可能与停靠容器中的当前控件相邻的控件的任何属性。

控件根据控件的当前 z 顺序相互停靠;从停靠容器的指定边缘放置它们的 z 顺序越高。

属性

名称 说明
DockPosition

获取停靠容器中控件的当前 DockPosition 值。

方法

名称 说明
SetDockPosition(DockPosition)

将控件停靠在停靠容器中。

适用于

另请参阅