콘텐츠로 이동

ElementExtensions.Margin<T> method (1 of 3)

이 콘텐츠는 아직 번역되지 않았습니다.

Sets the margin uniformly.

public static T Margin<T>(this T element, double uniform)
where T : FrameworkElement
parameter description
T Visual type.
element Target element.
uniform Uniform margin value.

The element for chaining.

Sets: FrameworkElement.Margin


ElementExtensions.Margin<T> method (2 of 3)

Section titled “ElementExtensions.Margin<T> method (2 of 3)”

Sets the margin with horizontal and vertical values.

public static T Margin<T>(this T element, double horizontal, double vertical)
where T : FrameworkElement
parameter description
T Visual type.
element Target element.
horizontal Horizontal margin.
vertical Vertical margin.

The element for chaining.


ElementExtensions.Margin<T> method (3 of 3)

Section titled “ElementExtensions.Margin<T> method (3 of 3)”

Sets the margin with individual values.

public static T Margin<T>(this T element, double left, double top, double right, double bottom)
where T : FrameworkElement
parameter description
T Visual type.
element Target element.
left Left margin.
top Top margin.
right Right margin.
bottom Bottom margin.

The element for chaining.