What is TextRenderer.MeasureText fucntion equivalent in c# mvc

I am using Visual studio 2013 and Mvc Framework. We are migrating the window desktop application to mvc web application.Right now i am searching the TextRenderer.MeasureText equivalent function for c# which i use in my project.
Simple i want this convert function in mvc c#. Basically i searching Textrender.MeasureText Alternate option for this technology.