PrintTree(Visual, Int32) Method

Definition

Assembly HeadlessTestingFramework.dll

Prints the visual tree structure to a string for debugging.

public static string PrintTree(this Visual root, int maxDepth = 2147483647)

Parameters

root
Avalonia.Visual

The root visual to print from.

maxDepth
Int32

Maximum depth to print (default is unlimited).

Returns

String
A string representation of the tree structure.