Class
RtfGeneratedText
OfficeIMO.Rtf
Dynamic text generated by an RTF reader or renderer, such as page number or current date.
Inheritance
- object
- RtfGeneratedText
Usage
Explore 8 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 8
Constructors
public RtfGeneratedText(RtfGeneratedTextKind kind, string? fallbackText = null) #Creates a generated text marker.
Parameters
- kind OfficeIMO.Rtf.RtfGeneratedTextKind
- fallbackText string? = null
Methods
public string ToPlainText() #Returns the optional fallback text, or an empty string when the value must be generated by a renderer.
Returns
stringInherited Methods
Properties
public RtfGeneratedTextKind Kind { get; set; } #Kind of generated text represented by this marker.
public string? FallbackText { get; set; } #Optional text used by semantic conversions that cannot evaluate the generated value.
public RtfNote? Note { get; set; } #Optional note attached to this generated marker, such as an automatic footnote reference.