.font is a Public Overridable ReadOnly property and is of type System.Web.UI.WebControls.FontInfo which is a class. That is why you have to drill down to the actual properties you can set.
Rather than hard-coding these values in your code, a font should be assigned via a css file so that changes can be made vwithout having to recompile and redeply your application.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.