将指定的点转换为指定模型的视觉坐标系统。
命名空间:  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
参数
- pt
 类型:System.Windows.Point
 要平移的点。
- referenceTo
 类型:Microsoft.Windows.Design.Model.ModelItem
 坐标要转换成的模型。
返回值
类型:System.Windows.Point
一个 Point 对象,表示转换点。
异常
| 异常 | 条件 | 
|---|---|
| ArgumentNullException | referenceTo 为 nullnull 引用(在 Visual Basic 中为 Nothing)。 | 
备注
返回设计器视图的可视子级。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.Interaction 命名空间