GridColumnStylesCollection.ResetPropertyDescriptors Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the PropertyDescriptor for each column style in the collection to null
.
public:
void ResetPropertyDescriptors();
public void ResetPropertyDescriptors ();
member this.ResetPropertyDescriptors : unit -> unit
Public Sub ResetPropertyDescriptors ()
Examples
The following code example demonstrates the use of this member.
private:
void ResetButton_Click( Object^ /*sender*/, EventArgs^ /*e*/ )
{
DataGridTableStyle^ myTableStyle = myDataGrid->TableStyles[ 0 ];
GridColumnStylesCollection^ myColumns = myTableStyle->GridColumnStyles;
// Reset the property descriptor of column styles collection.
myColumns->ResetPropertyDescriptors();
}
private void ResetButton_Click(object sender, EventArgs e)
{
DataGridTableStyle myTableStyle = myDataGrid.TableStyles[0];
GridColumnStylesCollection myColumns= myTableStyle.GridColumnStyles;
// Reset the property descriptor of column styles collection.
myColumns.ResetPropertyDescriptors();
}
Private Sub ResetButton_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim myTableStyle As DataGridTableStyle = myDataGrid.TableStyles(0)
Dim myColumns As GridColumnStylesCollection = myTableStyle.GridColumnStyles
' Reset the property descriptor of column styles collection.
myColumns.ResetPropertyDescriptors()
End Sub
Applies to
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.