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"]],[["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 `Document.Types.TextAnchor` class within the Google Cloud Document AI v1 API, specifically for the .NET environment, with version 3.19.0 being the most recent version."],["The `TextAnchor` class is used for indexing text references within a document, linking back to the `Document.text` field in the Document AI API."],["The `TextAnchor` class implements several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage` enhancing its functionality within the .NET framework."],["The `TextAnchor` class offers two constructors, one default and one that takes another `TextAnchor` instance for initialization, allowing for flexible object creation."],["It exposes properties like `Content` and `TextSegments`, where `Content` is a string that contains the text span's content and `TextSegments` is a `RepeatedField` of text segments related to the anchor, so users do not have to refer back to the source document."]]],[]]