Condividi tramite


GridColumnStylesCollection.ResetPropertyDescriptors Metodo

Definizione

Imposta il descrittore PropertyDescriptor relativo a ciascuno stile di colonna dell'insieme su null .

public:
 void ResetPropertyDescriptors();
public void ResetPropertyDescriptors ();
member this.ResetPropertyDescriptors : unit -> unit
Public Sub ResetPropertyDescriptors ()

Esempio

Nell'esempio di codice seguente viene illustrato l'uso di questo membro.

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

Si applica a