VintaSoft Imaging .NET SDK 11.0
Vintasoft.Imaging.Text Namespace / TextRegion Class / TextContent Property
Example



In This Topic
    TextContent Property (TextRegion)
    In This Topic
    Gets a text content of this region.
    Syntax
    'Declaration
     
    Public ReadOnly Property TextContent As String
    public string TextContent {get;}
    public: __property string* get_TextContent();
    public:
    property String^ TextContent {
       String^ get();
    }
    Example
    This example 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 6; .NET 5; .NET Core 3.1; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also