FixedPage.SetRight(UIElement, Double) 方法

定義

設定項目右邊與其父代 Canvas 右邊之間的距離。

public:
 static void SetRight(System::Windows::UIElement ^ element, double length);
public static void SetRight (System.Windows.UIElement element, double length);
static member SetRight : System.Windows.UIElement * double -> unit
Public Shared Sub SetRight (element As UIElement, length As Double)

參數

element
UIElement

要設定右位移的項目。

length
Double

項目右邊與其父代畫布右邊之間的新距離。

備註

子項目的右位移不會影響父畫布的大小。

如果在同一個元素上同時指定左位移和右位移,左位移會優先。

將右位移設定為百分比時,百分比值是以父畫布的寬度為基礎。

適用於

另請參閱