IPlatformFonts.Register(String, FontSource[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.