AvalonStudio.TextEditor.Document.TextAnchorNode.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
		public override string ToString()
		{
			return "[TextAnchorNode Length=" + length + " TotalLength=" + totalLength + " Target=" + Target + "]";
		}
	}

Usage Example

Example #1
0
 private static void AppendTreeToString(TextAnchorNode node, StringBuilder b, int indent)
 {
     if (node.color == RED)
     {
         b.Append("RED   ");
     }
     else
     {
         b.Append("BLACK ");
     }
     b.AppendLine(node.ToString());
     indent += 2;
     if (node.left != null)
     {
         b.Append(' ', indent);
         b.Append("L: ");
         AppendTreeToString(node.left, b, indent);
     }
     if (node.right != null)
     {
         b.Append(' ', indent);
         b.Append("R: ");
         AppendTreeToString(node.right, b, indent);
     }
 }
All Usage Examples Of AvalonStudio.TextEditor.Document.TextAnchorNode::ToString