Remove Method
- Namespace
TXTextControl.DataVisualization
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Removes a drawing from a Text Control document.
Syntax
public bool Remove(DrawingFrame drawingFrame);Public Function Remove(drawingFrame As DrawingFrame) As BooleanParameters
| Parameter | Description |
|---|---|
| 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.");
}If drawingCollection.Remove(New TXTextControl.DataVisualization.DrawingFrame("Approved")) Then
Console.WriteLine("Remove completed successfully.")
End If