次の方法で共有


Font.OfSize(String, Double, FontWeight, FontSlant, Boolean) メソッド

定義

要求されたフォントとサイズの Font 構造を返します。

public static Microsoft.Maui.Font OfSize (string? name, double size, Microsoft.Maui.FontWeight weight = Microsoft.Maui.FontWeight.Regular, Microsoft.Maui.FontSlant fontSlant = Microsoft.Maui.FontSlant.Default, bool enableScaling = true);
static member OfSize : string * double * Microsoft.Maui.FontWeight * Microsoft.Maui.FontSlant * bool -> Microsoft.Maui.Font
Public Shared Function OfSize (name As String, size As Double, Optional weight As FontWeight = Microsoft.Maui.FontWeight.Regular, Optional fontSlant As FontSlant = Microsoft.Maui.FontSlant.Default, Optional enableScaling As Boolean = true) As Font

パラメーター

name
String

対象のシステム フォントの名前。

size
Double

目的のフォント サイズ。

weight
FontWeight
fontSlant
FontSlant
enableScaling
Boolean

戻り値

Font のインスタンス。

注釈

フォントの可用性は、プラットフォームとデバイスによって異なります。

適用対象