TX Text Control .NET for WPF

Remove Method

Method|Introduced in 23.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 drawing from a Text Control document.

Syntax

public bool Remove(DrawingFrame drawingFrame);

Parameters

ParameterDescription
drawingFrame

Specifies the drawing to remove.

Return Value

The return value is true, if the drawing could be removed. Otherwise, it is false.

Examples

The following example removes an item from the drawing collection.

if (drawingCollection.Remove(new TXTextControl.DataVisualization.DrawingFrame("Approved")))
{
    Console.WriteLine("Remove completed successfully.");
}