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 webpage provides documentation for the \u003ccode\u003eTextAnchor\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.DocumentAI.V1\u003c/code\u003e namespace, specifically focusing on version 1.5.0 and onwards, up to the latest 3.19.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTextAnchor\u003c/code\u003e class is used for indexing text references into a document's text, as part of the Google Cloud Document AI service.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, which offers specific methods and functionalities for managing and using the class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTextAnchor\u003c/code\u003e class offers two constructors, a default constructor and one that takes another \u003ccode\u003eTextAnchor\u003c/code\u003e object, as well as two key properties, \u003ccode\u003eContent\u003c/code\u003e (a string) and \u003ccode\u003eTextSegments\u003c/code\u003e (a \u003ccode\u003eRepeatedField\u003c/code\u003e of \u003ccode\u003eTextSegment\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe page outlines all versions from 1.0.0 to the latest 3.19.0 of the \u003ccode\u003eTextAnchor\u003c/code\u003e class with the full documentation on each version.\u003c/p\u003e\n"]]],[],null,[]]