Font.WithAttributes(FontAttributes) 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.
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
.