public ReportFont(FontStyleType fontStyle, string fontFamily, Unit fontSize, ReportFontWeight fontWeight)
 {
     FontStyle  = fontStyle;
     FontFamily = fontFamily;
     FontSize   = fontSize;
     FontWeight = fontWeight;
 }
 public ReportFont()
 {
     _fontWeight = new ReportFontWeight();
 }
 public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
 {
     return(new ReportFont((FontStyleType)propertyValues["FontStyle"], (string)propertyValues["FontFamily"],
                           (Unit)propertyValues["FontSize"], new ReportFontWeight(ReportFontWeight.GetValueFromString((string)propertyValues["FontWeight"]), (string)propertyValues["FontWeight"])));//(ReportFontWeight)propertyValues["FontWeight"]);
 }