Class OdfFontFaceInfo
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
NamestringThe style:name value of the font-face declaration. / font-face 宣告的 style:name 值。
FamilystringThe concrete font family name. / 實際字型家族名稱。
GenericFamilystringThe optional generic font family (for example "system-serif"). / 選用的泛用字型家族(例如 "system-serif")。
PitchstringThe optional font pitch (for example "variable" or "fixed"). / 選用的字距類型(例如 "variable" 或 "fixed")。
Properties
Family
The concrete font family name. / 實際字型家族名稱。
public string Family { get; init; }
Property Value
GenericFamily
The optional generic font family (for example "system-serif"). / 選用的泛用字型家族(例如 "system-serif")。
public string? GenericFamily { get; init; }
Property Value
Name
The style:name value of the font-face declaration. / font-face 宣告的 style:name 值。
public string Name { get; init; }
Property Value
Pitch
The optional font pitch (for example "variable" or "fixed"). / 選用的字距類型(例如 "variable" 或 "fixed")。
public string? Pitch { get; init; }
Property Value
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
Equals(OdfFontFaceInfo?)
public bool Equals(OdfFontFaceInfo? other)
Parameters
otherOdfFontFaceInfo
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(OdfFontFaceInfo?, OdfFontFaceInfo?)
public static bool operator ==(OdfFontFaceInfo? left, OdfFontFaceInfo? right)
Parameters
leftOdfFontFaceInforightOdfFontFaceInfo
Returns
operator !=(OdfFontFaceInfo?, OdfFontFaceInfo?)
public static bool operator !=(OdfFontFaceInfo? left, OdfFontFaceInfo? right)
Parameters
leftOdfFontFaceInforightOdfFontFaceInfo