Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdfTextField

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
1f76172c94d1 with working tree changes
Modifiers
sealed

A basic native field. Other field kinds remain preserved as opaque inline XML.

Inheritance

  • object
  • OdfTextField

Usage

Explore 9 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.

Methods

public XElement ToXml() #

Returns a detached copy including native date/time values, style names and offsets.

Returns

XElement

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 bool 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 bool? 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 int PageAdjustment { get; set; } #

Integer added to the selected page number. A result outside the drawing has no displayed number.