Remove Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Removes a text frame from a Text Control document.
Syntax
public bool Remove(TextFrame textFrame);Public Function Remove(textFrame As TextFrame) As BooleanParameters
| Parameter | Description |
|---|---|
| textFrame | Specifies the text frame to remove. |
Return Value
The return value is true, if the text frame could be removed. Otherwise, it is false.
Examples
The following example works with text frames in the current document by using TextFrameCollection.Remove.
TextFrameCollection textFrameCollection = textControl.TextFrames;
textFrameCollection.Add(new TextFrame(new System.Drawing.Size(3000, 1200)) { Name = "Callout", ID = 100 }, TextFrameInsertionMode.DisplaceText);
if (textFrameCollection.Remove(new TextFrame(new System.Drawing.Size(600, 400))))
{
Console.WriteLine("Remove completed successfully.");
}Dim textFrameCollection As TextFrameCollection = textControl.TextFrames
textFrameCollection.Add(New TextFrame(New System.Drawing.Size(3000, 1200)) With { .Name = "Callout", .ID = 100 }, TextFrameInsertionMode.DisplaceText)
If textFrameCollection.Remove(New TextFrame(New System.Drawing.Size(600, 400))) Then
Console.WriteLine("Remove completed successfully.")
End If