public override string ToString()
{
string val = String.Empty;
if (this.Value.HasValue) {
switch (this.Type) {
case SizeType.Pixel:
val = String.Format("{0:0}px", this.Value.Value);
break;
case SizeType.EM:
val = String.Format("{0:0.00}em", this.Value.Value);
break;
case SizeType.Point:
val = String.Format("{0:0.0}pt", this.Value.Value);
break;
default:
val = String.Format("{0:0.0}", this.Value.Value);
break;
}
}
return val;
}