VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Text Namespace / TextRegion Class / TextContent Property
Syntax Example Requirements SeeAlso
In This Topic
TextContent Property (TextRegion)
In This Topic
Gets a text content of this region.
Syntax
'Declaration

Public ReadOnly Property TextContent As System.String

public System.String TextContent { get; }

Example

This C#/VB.NET code shows how to get all text content of PDF page.


''' <summary>
''' Returns all text of PDF page.
''' </summary>
''' <param name="page">PDF page.</param>
''' <returns>Text content of PDF page.</returns>
Public Shared Function GetAllTextPage(page As Vintasoft.Imaging.Pdf.Tree.PdfPage) As String
    Return page.TextRegion.TextContent
End Function


/// <summary>
/// Returns all text of PDF page.
/// </summary>
/// <param name="page">PDF page.</param>
/// <returns>Text content of PDF page.</returns>
public static string GetAllTextPage(Vintasoft.Imaging.Pdf.Tree.PdfPage page)
{
    return page.TextRegion.TextContent;
}

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also