Share via


GridView.GetColumnCollection(DependencyObject) 方法

定義

取得 ColumnCollection 附加屬性的內容。

public:
 static System::Windows::Controls::GridViewColumnCollection ^ GetColumnCollection(System::Windows::DependencyObject ^ element);
public static System.Windows.Controls.GridViewColumnCollection GetColumnCollection (System.Windows.DependencyObject element);
static member GetColumnCollection : System.Windows.DependencyObject -> System.Windows.Controls.GridViewColumnCollection
Public Shared Function GetColumnCollection (element As DependencyObject) As GridViewColumnCollection

參數

element
DependencyObject

與集合相關聯的 DependencyObject

傳回

GridViewColumnCollection

所指定 DependencyObjectColumnCollection

備註

請勿使用這個方法來變更 物件的資料行 GridView 集合。 若要取得、設定或變更為 GridView 物件定義的資料行,請使用 Columns 屬性。

適用於

另請參閱