Font.WithAttributes(FontAttributes) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回具有指定属性的新字体结构。
public Xamarin.Forms.Font WithAttributes(Xamarin.Forms.FontAttributes fontAttributes);
member this.WithAttributes : Xamarin.Forms.FontAttributes -> Xamarin.Forms.Font
参数
- fontAttributes
- FontAttributes
字体为斜体、粗体或两者都不是。
返回
一个新的 Font 结构,其中包含使用 fontAttributes 指定的属性。