Calculate text length

Is there a possibility to calculate the length of a text in pixels?

Look at Graphics.StringWidth in the docs.