Class FontFamily
Represents a family of related fonts.
Inheritance
System.Object
FontFamily
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public class FontFamily
Constructors
| Improve this Doc View SourceFontFamily(String)
Initializes a new instance of the FontFamily class from the specified font family string.
Declaration
public FontFamily(string familyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | familyName | The family name of the font to represent. This can include a hashed suffix. |
Properties
| Improve this Doc View SourceSource
Gets the font family name that is used to construct the FontFamily object.
Declaration
public string Source { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()