Skip to main content

Clear output

To clear the contents displayed in the output tab of the information pane, use the Clear or ClearAll method of the IOutput object. With the Clear method, specify the category to be cleared.

public void ClearOutput(ICommandContext c, ICommandParams p) 
{
//Clear the "sample" category
c.App.Output.Clear("sample");

//Clear all categories
c.App.Output.ClearAll();
}