MouseGestureData.TranslatePoint Method
Translates the specified point to the coordinate system of the visual for the specified model.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
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
Parameters
- pt
Type: System.Windows.Point
The point to translate.
- referenceTo
Type: Microsoft.Windows.Design.Model.ModelItem
The model to translate coordinates into.
Return Value
Type: System.Windows.Point
A Point object that represents the translated point.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | referenceTo is nulla null reference (Nothing in Visual Basic). |
Remarks
The visual must be a child of the designer decorator.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace