Skip to main content

WithHeight Method

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

Definition

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

public PixelSize WithHeight(
int height
)
View Source

Parameters

  Int32
The height.

Return Value

PixelSize
The new PixelSize.

See Also

Reference

PixelSize Structure
Avalonia Namespace