public sealed class TextAnchor : IMessage<Document.Types.TextAnchor>, IEquatable<Document.Types.TextAnchor>, IDeepCloneable<Document.Types.TextAnchor>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Document AI v1 API class Document.Types.TextAnchor.
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 webpage provides documentation for the \u003ccode\u003eDocument.Types.TextAnchor\u003c/code\u003e class within the Google Cloud Document AI v1 API, specifically for version 3.2.0, with links to other versions.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTextAnchor\u003c/code\u003e is a class used for text reference indexing into the \u003ccode\u003eDocument.text\u003c/code\u003e 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 documentation details two constructors for \u003ccode\u003eTextAnchor\u003c/code\u003e: a default constructor and one that accepts another \u003ccode\u003eTextAnchor\u003c/code\u003e instance as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two main properties: \u003ccode\u003eContent\u003c/code\u003e, which contains the text span content, and \u003ccode\u003eTextSegments\u003c/code\u003e, which refers to the text segments within the \u003ccode\u003eDocument.text\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers the inherited members of the class such as \u003ccode\u003eObject.GetHashCode()\u003c/code\u003e and \u003ccode\u003eObject.GetType()\u003c/code\u003e along with the namespace \u003ccode\u003eGoogle.Cloud.DocumentAI.V1\u003c/code\u003e and the assembly \u003ccode\u003eGoogle.Cloud.DocumentAI.V1.dll\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]