TextPosition Class
Represents a position within a PresentationDocument.
- Inheritance:
- System.ObjectTextPosition
Remarks
For more information, see Find and Replace example.
Properties
LoadTextFormat
Gets the character formatting options for text loaded with LoadText(String) method or null if text cannot be loaded to the current TextPosition.
public TextCharacterFormat LoadTextFormat { get; }
Public ReadOnly Property LoadTextFormat As TextCharacterFormat
Property Value
The character formatting options for text loaded with LoadText(String) method or null if text cannot be loaded to the current TextPosition.
Parent
Gets the parent that scopes the current TextPosition.
Property Value
- System.Object
The parent that scopes the current TextPosition.
Methods
LoadText(String)
Loads the specified text at the current TextPosition.
public TextPosition LoadText(string text)
Public Function LoadText(text As String) As TextPosition
Parameters
text
- System.String
The text which should be loaded at the current TextPosition.
Returns
A TextPosition instance which points to a location just after the loaded text.
LoadText(String, HtmlLoadOptions)
Loads the specified (interpreted) htmlText
to the current TextPosition.
public TextPosition LoadText(string htmlText, HtmlLoadOptions options)
Public Function LoadText(htmlText As String, options As HtmlLoadOptions) As TextPosition
Parameters
htmlText
- System.String
The text which should be loaded at the current TextPosition.
options
- HtmlLoadOptions
The options used to define settings for load operation.
Returns
A TextPosition instance which points to a location just after the loaded text.