共用方式為


MouseGestureData.TranslatePoint 方法

將指定的點轉譯為指定之模型的視覺座標系統。

命名空間:  Microsoft.Windows.Design.Interaction
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public Function TranslatePoint ( _
    pt As Point, _
    referenceTo As ModelItem _
) As Point
public Point TranslatePoint(
    Point pt,
    ModelItem referenceTo
)
public:
Point TranslatePoint(
    Point pt, 
    ModelItem^ referenceTo
)
member TranslatePoint : 
        pt:Point * 
        referenceTo:ModelItem -> Point 
public function TranslatePoint(
    pt : Point, 
    referenceTo : ModelItem
) : Point

參數

傳回值

型別:System.Windows.Point
Point 物件,表示轉譯的點。

例外狀況

例外狀況 條件
ArgumentNullException

referenceTo 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。

備註

視覺物件必須是設計工具 Decorator 的子系。

.NET Framework 安全性

請參閱

參考

MouseGestureData 類別

Microsoft.Windows.Design.Interaction 命名空間

其他資源

了解 WPF 設計工具擴充性