Remove Method
- Namespace
TXTextControl.DataVisualization
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Removes a chart from a Text Control document.
Syntax
public bool Remove(ChartFrame chartFrame);Public Function Remove(chartFrame As ChartFrame) As BooleanParameters
| Parameter | Description |
|---|---|
| chartFrame | Specifies the chart to remove. |
Return Value
The return value is true, if the chart could be removed. Otherwise, it is false.
Examples
The following example removes an item from the chart collection.
if (chartCollection.Remove(new TXTextControl.DataVisualization.ChartFrame(new System.ComponentModel.Component())))
{
Console.WriteLine("Remove completed successfully.");
}If chartCollection.Remove(New TXTextControl.DataVisualization.ChartFrame(New System.ComponentModel.Component())) Then
Console.WriteLine("Remove completed successfully.")
End If