Skip to main content

WithHeight Method

Returns a new Size with the same width and the specified height.

Definition​

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public Size WithHeight(
double height
)

Parameters​

  Double
The height.

Return Value​

Size
The new Size.

See Also​

Reference​

Size Structure
Avalonia Namespace