API Reference
OdfTextField
A basic native field. Other field kinds remain preserved as opaque inline XML.
Inheritance
- Object
- OdfTextField
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
- Method OdfTextContent.AddField
- Property OdfTextContent.Fields
- Method OdfTextHyperlink.AddField
- Property OdfTextHyperlink.Fields
- Property OdfTextNode.Field
- Method OdfTextParagraph.AddField
- Property OdfTextParagraph.Fields
- Method OdfTextRun.AddField
- Property OdfTextRun.Fields
Methods
public XElement ToXml() #XElementReturns a detached copy including native date/time values, style names and offsets.
Inherited Methods
Properties
public OdfTextFieldKind Kind { get; } #Native field kind.
public String DisplayText { get; set; } #Cached display text, which a native application may refresh. Assignment preserves field attributes.
public Boolean IsFixed { get; set; } #Whether the cached value is fixed. Page count is always dynamic.
public String DataStyleName { get; set; } #Native date/time data-style binding. Null removes the binding.
public String DateTimeValueLexical { get; set; } #Saved native date/dateTime or time/dateTime lexical value. Assignment preserves the original offset notation.
public String DateTimeAdjustmentLexical { get; set; } #Native ISO duration adjustment. Time fields accept day/clock durations and truncate them to full minutes during projection.
public String NumberFormat { get; set; } #Native page-number/count format: 1, a, A, i, I, or an empty string for no number. Null removes the override. Other native formats are preserved but require a native formatter.
public Nullable<Boolean> NumberLetterSync { get; set; } #True uses repeated letters after Z (AA, BB); false uses AA, AB. Null removes the override.
public OdfTextFieldPageSelection PageSelection { get; set; } #The native page selection. This property applies only to page-number fields.
public Int32 PageAdjustment { get; set; } #Integer added to the selected page number. A result outside the drawing has no displayed number.