IPlatformFonts.Register(String, FontSource[]) Method

Definition

Registers fonts with the specified alias.

public:
 void Register(System::String ^ alias, ... cli::array <Microsoft::Maui::Graphics::FontSource> ^ sources);
public void Register(string alias, params Microsoft.Maui.Graphics.FontSource[] sources);
abstract member Register : string * Microsoft.Maui.Graphics.FontSource[] -> unit
Public Sub Register (alias As String, ParamArray sources As FontSource())

Parameters

alias
String

The alias to associate with the font sources.

sources
FontSource[]

The font sources to register.

Exceptions

Thrown when alias or sources is null.

Thrown when sources is empty.

Applies to