public sealed class Document.Types.TextChange : IMessage<Document.Types.TextChange>, IEquatable<Document.Types.TextChange>, IDeepCloneable<Document.Types.TextChange>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Document AI v1beta3 API class Document.Types.TextChange.
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.v1beta3.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-24 UTC."],[[["The `Document.Types.TextChange` class, part of the Cloud Document AI v1beta3 API, is used to represent and manage text changes, such as OCR corrections, within a document."],["This class inherits from `object` and implements interfaces like `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, providing functionality for message handling, comparison, deep cloning, and buffer management."],["The `TextChange` class offers two constructors: a default constructor and one that takes another `TextChange` instance as a parameter for creating a copy."],["Key properties of the `TextChange` class include `ChangedText`, which stores the corrected text, and `TextAnchor`, which provides the location and context of the change within the original document text, along with an obsolete `Provenance` property."],["The current latest version for this class is `2.0.0-beta23`, but there are also previous versions `2.0.0-beta22` and `1.0.0-beta04`."]]],[]]