GridPattern GridPattern GridPattern GridPattern Class


代表可當成子項目集合容器使用的控制項。Represents controls that act as containers for a collection of child elements. 這個控制項的子系支援 GridItemPattern,並組合管理成資料列與資料行可周遊的二維邏輯座標系統。The children of this control support GridItemPattern and are organized in a two-dimensional logical coordinate system that can be traversed by row and column.

public ref class GridPattern : System::Windows::Automation::BasePattern
public class GridPattern : System.Windows.Automation.BasePattern
type GridPattern = class
    inherit BasePattern
Public Class GridPattern
Inherits BasePattern


GridPattern不支援方格的現用操作;此功能需要控制項模式。 TransformPatternGridPattern does not support active manipulation of a grid; the TransformPattern control pattern is required for this functionality.

如需可能支援此控制項模式之控制項的範例, 請參閱UI 自動化用戶端的控制項模式對應See Control Pattern Mapping for UI Automation Clients for examples of controls that may support this control pattern.


ColumnCountProperty ColumnCountProperty ColumnCountProperty ColumnCountProperty

識別 ColumnCount 屬性。Identifies the ColumnCount property.

Pattern Pattern Pattern Pattern

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

RowCountProperty RowCountProperty RowCountProperty RowCountProperty

識別 RowCount 屬性。Identifies the RowCount property.


Cached Cached Cached Cached

取得這個 GridPattern 的快取 UI 自動化UI Automation 屬性值。Gets the cached UI 自動化UI Automation property values for this GridPattern.

Current Current Current Current

取得這個 GridPattern 的目前 UI 自動化UI Automation 屬性值。Gets the current UI 自動化UI Automation property values for this GridPattern.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetItem(Int32, Int32) GetItem(Int32, Int32) GetItem(Int32, Int32) GetItem(Int32, Int32)

擷取一個表示指定之儲存格的 AutomationElementRetrieves an AutomationElement that represents the specified cell.

GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)