ViewItem.TransformToView Method
Returns a transform that can be used to transform coordinates from the view to the specified view object.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function TransformToView ( _
view As ViewItem _
) As GeneralTransform
public abstract GeneralTransform TransformToView(
ViewItem view
)
public:
virtual GeneralTransform^ TransformToView(
ViewItem^ view
) abstract
abstract TransformToView :
view:ViewItem -> GeneralTransform
public abstract function TransformToView(
view : ViewItem
) : GeneralTransform
Parameters
- view
Type: Microsoft.Windows.Design.Interaction.ViewItem
The ViewItem to transform the coordinates to.
Return Value
Type: System.Windows.Media.GeneralTransform
A Transform that represents the conversion, or nulla null reference (Nothing in Visual Basic) if the transform could not be computed.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | view is nulla null reference (Nothing in Visual Basic). |
.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.