目錄 / Table of Contents

Class OdfFontFaceInfo

Namespace
OdfKit.Styles
Assembly
OdfKit.dll

Describes an ODF font-face declaration. 描述 ODF font-face 宣告的資訊。

public sealed record OdfFontFaceInfo : IEquatable<OdfFontFaceInfo>
Inheritance
OdfFontFaceInfo
Implements
Inherited Members

Constructors

OdfFontFaceInfo(string, string, string?, string?)

Describes an ODF font-face declaration. 描述 ODF font-face 宣告的資訊。

public OdfFontFaceInfo(string Name, string Family, string? GenericFamily, string? Pitch)

Parameters

Name string

The style:name value of the font-face declaration. / font-face 宣告的 style:name 值。

Family string

The concrete font family name. / 實際字型家族名稱。

GenericFamily string

The optional generic font family (for example "system-serif"). / 選用的泛用字型家族(例如 "system-serif")。

Pitch string

The optional font pitch (for example "variable" or "fixed"). / 選用的字距類型(例如 "variable" 或 "fixed")。

Properties

Family

The concrete font family name. / 實際字型家族名稱。

public string Family { get; init; }

Property Value

string

GenericFamily

The optional generic font family (for example "system-serif"). / 選用的泛用字型家族(例如 "system-serif")。

public string? GenericFamily { get; init; }

Property Value

string

Name

The style:name value of the font-face declaration. / font-face 宣告的 style:name 值。

public string Name { get; init; }

Property Value

string

Pitch

The optional font pitch (for example "variable" or "fixed"). / 選用的字距類型(例如 "variable" 或 "fixed")。

public string? Pitch { get; init; }

Property Value

string

Methods

Deconstruct(out string, out string, out string?, out string?)

public void Deconstruct(out string Name, out string Family, out string? GenericFamily, out string? Pitch)

Parameters

Name string
Family string
GenericFamily string
Pitch string

Equals(OdfFontFaceInfo?)

public bool Equals(OdfFontFaceInfo? other)

Parameters

other OdfFontFaceInfo

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(OdfFontFaceInfo?, OdfFontFaceInfo?)

public static bool operator ==(OdfFontFaceInfo? left, OdfFontFaceInfo? right)

Parameters

left OdfFontFaceInfo
right OdfFontFaceInfo

Returns

bool

operator !=(OdfFontFaceInfo?, OdfFontFaceInfo?)

public static bool operator !=(OdfFontFaceInfo? left, OdfFontFaceInfo? right)

Parameters

left OdfFontFaceInfo
right OdfFontFaceInfo

Returns

bool