API Reference

Class

OdfFontFamilySyntax

Namespace OfficeIMO.OpenDocument
Assembly OfficeIMO.OpenDocument
Modifiers sealed

Parsed CSS-style font-family syntax used by ODF text properties.

Inheritance

  • Object
  • OdfFontFamilySyntax

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

Accepted by parameters

Methods

public static OdfFontFamilySyntax Parse(String value) #
Returns: OdfFontFamilySyntax

Parses an ODF font-family value.

Parameters

value System.String requiredposition: 0

Exceptions

  • FormatException – The value is empty or contains malformed list syntax.
public override String ToString() #
Returns: String

Formats a stable ODF-compatible family list.

public static Boolean TryParse(String value, out OdfFontFamilySyntax syntax) #
Returns: Boolean

Tries to parse an ODF font-family value without regular-expression rewriting.

Parameters

value System.String requiredposition: 0
syntax OfficeIMO.OpenDocument.OdfFontFamilySyntax@ requiredposition: 1

Properties

public IReadOnlyList<String> Families { get; } #

Font families in authored fallback order.

public String PrimaryFamily { get; } #

The first authored family.

public Boolean HasFallbacks { get; } #

Whether the syntax contains fallback families that a single-name target cannot retain.