Replaces the text content for this page.
public void SetText(
DocumentPageText text
)
Public Sub SetText(
ByVal text As DocumentPageText
)
public:
void SetText(
DocumentPageText^ text
)
public void setText(DocumentPageText text)
text
New text content to use for this page. This value can be null.
GetText is used to parse the text content of a page. All document types support this method and internally will use the LEADTOOLS SVG or OCR engines to obtain the text from the document.
SetText is used to replace the text content of the page. IsTextModified is used to as flag that indicates that the text of this page has been replaced by the user.
This method works as follows (the "item" is the text content):
This method requires that the owner document uses a cache system (Document.HasCache is true), otherwise; an exception will be thrown.
If the value of the IsReadOnly property of Document is true, then the user cannot modify this document and an exception will be thrown.
All previously saved text objects for this page are purged from the cache.
is added to the cache by serializing the DocumentPageText object. If
is null, then a "null" item is added to the cache.
GetText will check the cache first, hence, subsequent calls will return the value set by this method.
The value of IsTextModified will be set to true after this method returns.
For more information, refer to Parsing Text with the Documents Library.
Products |
Support |
Feedback: SetText Method (DocumentPage) - Leadtools.Documents |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.