Share via


ViewItem.TransformToVisual Method

Returns a transform that can be used to transform coordinates from the view to the specified visual object.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Function TransformToVisual ( _
    visual As Visual _
) As GeneralTransform
public abstract GeneralTransform TransformToVisual(
    Visual visual
)
public:
virtual GeneralTransform^ TransformToVisual(
    Visual^ visual
) abstract
abstract TransformToVisual : 
        visual:Visual -> GeneralTransform 
public abstract function TransformToVisual(
    visual : Visual
) : GeneralTransform

Parameters

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

visual is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ViewItem Class

Microsoft.Windows.Design.Interaction Namespace