API Reference
Class
RtfGeneratedText
Dynamic text generated by an RTF reader or renderer, such as page number or current date.
Inheritance
- Object
- RtfGeneratedText
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Constructors
public RtfGeneratedText(RtfGeneratedTextKind kind, String fallbackText = null) #Creates a generated text marker.
Parameters
- kind OfficeIMO.Rtf.RtfGeneratedTextKind
- fallbackText System.String = null
Methods
public String ToPlainText() #Returns:
StringReturns the optional fallback text, or an empty string when the value must be generated by a renderer.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
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.