TX Text Control .NET for WPF

Remove Method

Method|Introduced in 18.0
Namespace
TXTextControl.DataVisualization
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Removes a chart from a Text Control document.

Syntax

public bool Remove(ChartFrame chartFrame);

Parameters

ParameterDescription
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.");
}