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
參數
- pt
型別:System.Windows.Point
要平移的點。
- referenceTo
型別:Microsoft.Windows.Design.Model.ModelItem
要將座標轉譯成的模型。
傳回值
型別:System.Windows.Point
Point 物件,表示轉譯的點。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | referenceTo 為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
備註
視覺物件必須是設計工具 Decorator 的子系。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.Windows.Design.Interaction 命名空間