public sealed class TextChange : IMessage<Document.Types.TextChange>, IEquatable<Document.Types.TextChange>, IDeepCloneable<Document.Types.TextChange>, IBufferMessage, IMessage
This message is used for text changes aka. OCR corrections.
public Document.Types.TextAnchor TextAnchor { get; set; }
Provenance of the correction.
Text anchor indexing into the
[Document.text][google.cloud.documentai.v1.Document.text]. There can
only be a single TextAnchor.text_segments element. If the start and
end index of the text segment are the same, the text change is inserted
before that index.
[[["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 details the `TextChange` class within the `Google.Cloud.DocumentAI.V1` namespace, which is used to represent text modifications, such as Optical Character Recognition (OCR) corrections."],["The `TextChange` class is part of version 2.0.0 of the library and has a list of previous versions, with version 3.19.0 being the latest version available."],["The class implements multiple interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits members from the base `Object` class."],["The `TextChange` class contains three main properties: `ChangedText`, which represents the replacement text, `Provenance`, which contains the history of the annotation, and `TextAnchor`, which indicates the location of the change within the original text."],["The `TextChange` class can be constructed with two overloads: One with no parameters, and another where a `Document.Types.TextChange` object is taken as a parameter."]]],[]]