Method SetText
SetText(string)
Attaches a textual representation to the attachment. This is primarily used to supply or override the extracted text for raster-based attachments (e.g., images), where OCR or other vision processing may be applied.
public void SetText(string text)
Parameters
text
stringThe text to associate with this attachment. Typically, this will be the OCR result or any manually provided description of the image content.
Remarks
Once set, this text is returned by GetText(CancellationToken) and bypasses any further extraction or vision-based processing. Useful for cases where the text has been precomputed or corrected externally.