ViewItem.TransformFromVisual Method
Returns a transform that can be used to transform coordinates from the specified visual object to the view.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function TransformFromVisual ( _
visual As Visual _
) As GeneralTransform
public abstract GeneralTransform TransformFromVisual(
Visual visual
)
public:
virtual GeneralTransform^ TransformFromVisual(
Visual^ visual
) abstract
abstract TransformFromVisual :
visual:Visual -> GeneralTransform
public abstract function TransformFromVisual(
visual : Visual
) : GeneralTransform
Parameters
- visual
Type: System.Windows.Media.Visual
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 | visual 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.