Export (0) Print
Expand All

FixedPage.SetRight Method

Sets the distance between the right side of an element and the right side of its parent Canvas.

Namespace:  System.Windows.Documents
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static void SetRight(
	UIElement element,
	double length
)

Parameters

element
Type: System.Windows.UIElement

The element on which to set the right offset.

length
Type: System.Double

The new distance between the right side of the element and the right side of its parent canvas.

The child element's right offset does not affect the size of the parent canvas.

If both a left and a right offset have been specified on the same element, the left offset takes precedence.

When setting the right offset as a percentage, the percentage value is based on the width of the parent canvas.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft