Show / Hide Table of Contents

Method wpfBuilder.Margin(+ 2 overloads)


Overload

Sets margin of the last added element.

public wpfBuilder Margin(Thickness margin)
Parameters
margin  (Thickness)
Returns
wpfBuilder

Overload(next)

Sets margin of the last added element.

public wpfBuilder Margin(double? left = null, double? top = null, double? right = null, double? bottom = null)
Parameters
left  (double?)
top  (double?)
right  (double?)
bottom  (double?)
Returns
wpfBuilder

Overload(top)

Sets margin of the last added element.

public wpfBuilder Margin(string margin)
Parameters
margin  (string)

String containing uppercase or lowercase letters for margin sides (L, T, R, B) optionally followed by a number (default 0) and optionally separated by spaces. Or just single number, to set all sides equal. Examples: "tb" (top 0, bottom 0), "L5 R15" (left 5, right 15), "2" (all sides 2).

Returns
wpfBuilder
Exceptions
ArgumentException

Invalid string.