Font.WithAttributes(FontAttributes) 方法

定义

返回具有指定属性的新字体结构。

public Xamarin.Forms.Font WithAttributes(Xamarin.Forms.FontAttributes fontAttributes);
member this.WithAttributes : Xamarin.Forms.FontAttributes -> Xamarin.Forms.Font

参数

fontAttributes
FontAttributes

字体为斜体、粗体或两者都不是。

返回

一个新的 Font 结构,其中包含使用 fontAttributes 指定的属性。

适用于