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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `TextAnchor` class within the `Google.Cloud.DocumentAI.V1` namespace, specifically focusing on version 1.2.0 but listing versions up to 3.19.0."],["The `TextAnchor` class is used for indexing into the `Document.text`, inheriting from `Object` and implementing multiple interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `TextAnchor` class has two constructors: a default constructor `TextAnchor()` and a copy constructor `TextAnchor(Document.Types.TextAnchor other)`."],["Key properties of `TextAnchor` include `Content`, a string containing the text span's content, and `TextSegments`, a collection of `TextSegment` objects that reference the `Document.text`."],["The page also list the inherited methods, as well as the namespace and assembly associated with this class, which is used to look up and get a reference in code."]]],[]]