Show / Hide Table of Contents

Method wpfBuilder.Size


Overload

Sets width and height of the last added element. Optionally sets alignment.

public wpfBuilder Size(WBLength width, WBLength height, string alignX = null, string alignY = null)
Parameters
width  (WBLength)

Width or/and min/max width.

height  (WBLength)

Height or/and min/max height.

alignX  (string)

Horizontal alignment. If not null, calls wpfBuilder.Align.

alignY  (string)

Vertical alignment.

Returns
wpfBuilder
Exceptions
ArgumentException

Invalid alignment string.