public sealed class TextAnchor : IMessage<Document.Types.TextAnchor>, IEquatable<Document.Types.TextAnchor>, IDeepCloneable<Document.Types.TextAnchor>, IBufferMessage, IMessage
Text reference indexing into the [Document.text][google.cloud.documentai.v1.Document.text].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eTextAnchor\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.DocumentAI.V1\u003c/code\u003e namespace, specifically version 1.3.0 and other versions ranging from 1.0.0 to 3.19.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextAnchor\u003c/code\u003e is a class used for referencing specific text within a Document, and it implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTextAnchor\u003c/code\u003e class includes properties such as \u003ccode\u003eContent\u003c/code\u003e (which stores the text span's content) and \u003ccode\u003eTextSegments\u003c/code\u003e (which refers to the text segments within the document's text).\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers the available constructors for the \u003ccode\u003eTextAnchor\u003c/code\u003e class, one being the default constructor, and the other taking another \u003ccode\u003eTextAnchor\u003c/code\u003e as its parameter.\u003c/p\u003e\n"],["\u003cp\u003eThis page also lists the version history of \u003ccode\u003eTextAnchor\u003c/code\u003e class and provides links to the documentation of each past version.\u003c/p\u003e\n"]]],[],null,[]]