Files
mono/mcs/class/System.Web.Mobile/System.Web.UI.MobileControls/FontInfo.cs
T
Gaurav Vaish 5cad9df360 2003-01-14 Gaurav Vaish <gvaish_mono AT lycos.com>
* *.cs                   : Update the year in copyright notice.

svn path=/trunk/mcs/; revision=10515
2003-01-14 18:43:13 +00:00

92 lines
1.3 KiB
C#

/**
* 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();
}
}
}