Graphics.MeasureCharacterRanges ()

Graphics.MeasureString ()
的重载函数就可以了