ActiveReports 12
TransformToAncestor(Visual) Method

GrapeCity.ActiveReports.Viewer.Wpf.v12 Assembly > GrapeCity.ActiveReports.Viewer.Wpf Namespace > Viewer Class > TransformToAncestor Method : TransformToAncestor(Visual) Method
The System.Windows.Media.Visual to which the coordinates are transformed.
Returns a transform that can be used to transform coordinates from the System.Windows.Media.Visual to the specified System.Windows.Media.Visual ancestor of the visual object.
Syntax
'Declaration
 
Public Overloads Function TransformToAncestor( _
   ByVal ancestor As Visual _
) As GeneralTransform
public GeneralTransform TransformToAncestor( 
   Visual ancestor
)

Parameters

ancestor
The System.Windows.Media.Visual to which the coordinates are transformed.

Return Value

Exceptions
ExceptionDescription
ancestor is null.
ancestor is not an ancestor of the visual.
The visual objects are not related.
See Also

Reference

Viewer Class
Viewer Members
Overload List