다음을 통해 공유


Font.WithAttributes(FontAttributes) Method

Definition

Returns a new font structure with the specified attributes.

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

Parameters

fontAttributes
FontAttributes

Whether the font is italic, bold, or neither.

Returns

A new Font structure with the attributes that were specified with fontAttributes.

Applies to