共用方式為


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那個是與收藏相關聯的。

傳回

ColumnCollection該 的指定 DependencyObject

備註

不要用這個方法來更改物件的 GridView 欄位集合。 要取得、設定或更改物件定義 GridView 的欄位,請使用該 Columns 屬性。

適用於

另請參閱