Annotations to respect \t

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
TRVRSE
Posts: 21
Joined: Fri May 30, 2014 1:27 pm

Annotations to respect \t

Post by TRVRSE » Fri Jun 27, 2014 3:08 pm

I'm trying to build some Annotations on my chart. The string that I'm using has some \t tab escape characters, which it uses for formatting a simple table. While a bit archaic, this is the format I'm presented with. Currently, the \t character is not being represented with whitespace, but is instead being skipped over. Is there a way to tell the annotation to parse the \t for a targeted number of spaces?

If not, any recommendations on parsing and replacing the \t with appropiate number of spaces? I'll likely have to do it before I assign the string to the AnnotationXY.Text.

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Annotations to respect \t

Post by ArctionPasi » Mon Jun 30, 2014 12:28 pm

There doesn't seem to be a way to add \t directly. Setting a mono-space font, like Courier New for the annotation, and adding preferred amount of spaces will do the trick.
LightningChart Support Team, PT

Post Reply