FixedPage::SetLeft Method (UIElement^, Double)

 

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

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

public:
static void SetLeft(
	UIElement^ element,
	double length
)

Parameters

element
Type: System.Windows::UIElement^

The element on which to set the left offset.

length
Type: System::Double

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

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

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

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

The following example shows use of the SetLeft method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: