GridView.SetColumnCollection メソッド

定義

ColumnCollection 添付プロパティの内容を設定します。

public:
 static void SetColumnCollection(System::Windows::DependencyObject ^ element, System::Windows::Controls::GridViewColumnCollection ^ collection);
public static void SetColumnCollection (System.Windows.DependencyObject element, System.Windows.Controls.GridViewColumnCollection collection);
static member SetColumnCollection : System.Windows.DependencyObject * System.Windows.Controls.GridViewColumnCollection -> unit
Public Shared Sub SetColumnCollection (element As DependencyObject, collection As GridViewColumnCollection)

パラメーター

element
DependencyObject

GridView オブジェクト。

collection
GridViewColumnCollection

割り当てる GridViewColumnCollection オブジェクト。

注釈

オブジェクトの列コレクションを変更するには、このメソッドを GridView 使用しないでください。 オブジェクトに対して定義 GridView されている列を取得、設定、または変更するには、 プロパティを Columns 使用します。

適用対象

こちらもご覧ください