DockPattern 類別

定義

表示停駐容器內公開停駐屬性的控制項。Represents controls that expose their dock properties within a docking container.

public ref class DockPattern : System::Windows::Automation::BasePattern
public class DockPattern : System.Windows.Automation.BasePattern
type DockPattern = class
    inherit BasePattern
Public Class DockPattern
Inherits BasePattern
繼承
DockPattern

備註

停駐容器是一種控制項,可讓您以水準和垂直方式排列子項目,相對於停駐容器的界限以及容器內的其他元素。A docking container is a control that allows the arrangement of child elements, both horizontally and vertically, relative to the boundaries of the docking container and other elements within the container.

控制項會根據其目前的迭置順序,停駐在彼此之間;其迭置順序位置愈高,會從停駐容器的指定邊緣將其進一步放置。Controls are docked relative to each other based on their current z-order; the higher their z-order placement, the further they are placed from the specified edge of the docking container.

如需可執行此控制項模式的控制項範例,請參閱 消費者介面自動化用戶端的控制項模式對應See Control Pattern Mapping for UI Automation Clients for examples of controls that can implement this control pattern.

DockPattern 不支援停駐容器的任何屬性,或可能停駐在停駐容器內目前控制項連續的控制項屬性。DockPattern does not support any properties of the docking container or any properties of controls that might be docked adjacent to the current control within the docking container.

欄位

DockPositionProperty

識別 DockPosition 屬性。Identifies the DockPosition property.

Pattern

識別 DockPattern 控制項模式。Identifies the DockPattern control pattern.

屬性

Cached

取得這個的快取消費者介面自動化屬性值 DockPatternGets the cached UI Automation property values for this DockPattern.

Current

取得這個的目前消費者介面自動化屬性值 DockPatternGets the current UI Automation property values for this DockPattern.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
SetDockPosition(DockPosition)

AutomationElement 停駐在停駐容器內要求的 DockPositionDocks the AutomationElement at the requested DockPosition within a docking container.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於

另請參閱