Canvas.TextWidth in WPTools

  • Hi,

    How can I determine the width of piece of text (a word, for instance)? I know Canvas.TextWidth(text) returns this in normal Windows application, but it doesn´t work for WPTools since zooming/scaling, etc.

    I'm asking because I have to create a dynamic table, which each column may have any size. So, I have to get each column name, discover its width, and create the cell, with that width (plus a spacing between borders).

    Thanks in advance

    Alessandro Fragnani