語言

RotateTransform.CenterY 屬性

定義

取得或設定旋轉中心點的 y 座標。

public:
 property double CenterY { double get(); void set(double value); };
public double CenterY { get; set; }
member this.CenterY : double with get, set
Public Property CenterY As Double

屬性值

旋轉中心的 y 座標。 預設值為 0。

備註

當你使用 時 RotateTransform,會意識到變換會使特定物體的座標系繞著點 (0, 0) 旋轉。 因此,根據物體的位置,它可能不會原地旋轉(繞中心旋轉)。 例如,若物體位於 x 軸 200 單位處,旋轉 30 度可使物體沿著半徑為 200 的圓擺動 30 度,該圓圍繞原點繪製。 要在原地旋轉一個物體,將 的 CenterX 和 設CenterYRotateTransform為要旋轉的物體中心。

相依財產資訊

Item 價值觀
識別碼欄位 CenterYProperty
元資料屬性設為 true None

適用於