指定した点を、指定したモデルのビジュアルの座標系に変換します。
名前空間: 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 名前空間