Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OdfFontFamilySyntax

OfficeIMO.OpenDocument

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

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

Inheritance

  • object
  • OdfFontFamilySyntax

Usage

Explore 2 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 1

Accepted by parameters 1

Methods

public static OdfFontFamilySyntax Parse(string value) #

Parses an ODF font-family value.

Parameters

value string required

Exceptions

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

Formats a stable ODF-compatible family list.

Returns

string
public static bool TryParse(string? value, out OdfFontFamilySyntax? syntax) #

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

Parameters

value string? required
syntax OfficeIMO.OpenDocument.OdfFontFamilySyntax? required

Returns

bool

Properties

public IReadOnlyList<string> Families { get; } #

Font families in authored fallback order.

public string PrimaryFamily { get; } #

The first authored family.

public bool HasFallbacks { get; } #

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