Font.WithSize(Double) Method

Definition

Returns a new Font with the specified size.

public:
 Microsoft::Maui::Font WithSize(double size);
public Microsoft.Maui.Font WithSize(double size);
member this.WithSize : double -> Microsoft.Maui.Font
Public Function WithSize (size As Double) As Font

Parameters

size
Double

The desired font size.

Returns

A new font instance with the specified size.

Applies to