通过


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 集合关联的项。

返回

指定的 ColumnCollectionDependencyObject

注解

请勿使用此方法更改对象的列集合 GridView 。 若要获取、设置或更改为 GridView 对象定义的列,请使用该 Columns 属性。

适用于

另请参阅