| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- /**
- * Project : Mono
- * Namespace : System.Web.UI.MobileControls
- * Class : FontInfo
- * Author : Gaurav Vaish
- *
- * Copyright : 2003 with Gaurav Vaish, and with
- * Ximian Inc
- */
- using System.Web.Mobile;
- namespace System.Web.UI.MobileControls
- {
- public class FontInfo
- {
- private Style style;
- internal FontInfo(Style style)
- {
- this.style = style;
- }
- public BooleanOption Bold
- {
- get
- {
- if(style != null)
- return style.Bold;
- return BooleanOption.False;
- }
- set
- {
- if(style != null)
- style.Bold = value;
- }
- }
- public BooleanOption Italic
- {
- get
- {
- if(style != null)
- return style.Italic;
- return BooleanOption.False;
- }
- set
- {
- if(style != null)
- style.Italic = value;
- }
- }
- public string Name
- {
- get
- {
- if(style != null)
- return style.FontName;
- return String.Empty;
- }
- set
- {
- if(style != null)
- style.FontName = value;
- }
- }
- public FontSize Size
- {
- get
- {
- if(style != null)
- return style.FontSize;
- return FontSize.Normal;
- }
- set
- {
- if(style != null)
- style.FontSize = value;
- }
- }
-
- [MonoTODO]
- public override string ToString()
- {
- //string retVal = String.Empty;
- throw new NotImplementedException();
- }
- }
- }
|