Metoda ReportViewer.Clear —
Clears the report view and fills it with the background color of the control.
Przestrzeń nazw: Microsoft.Reporting.WinForms
Zestaw: Microsoft.ReportViewer.WinForms (w Microsoft.ReportViewer.WinForms.dll)
Składnia
'Deklaracja
Public Sub Clear
public void Clear()
public:
void Clear()
member Clear : unit -> unit
public function Clear()
Uwagi
The Clear method resets the ReportViewer user interface elements to their default states.
Przykłady
private void button1_Click(object sender, EventArgs e)
{
reportViewer.Clear();
}
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
ReportViewer1.Clear()
End Sub