mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* *.cs : Update the year in copyright notice. svn path=/trunk/mcs/; revision=10515
92 lines
1.3 KiB
C#
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();
|
|
}
|
|
}
|
|
}
|