Skip to main content

WithWidth Method

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

Definition

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

public Size WithWidth(
double width
)

Parameters

  Double
The width.

Return Value

Size
The new Size.

See Also

Reference

Size Structure
Avalonia Namespace