Exemple #1
0
 protected GroupSection(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     if (_version > 1)
     {
         _backcolor2        = (Color)info.GetValue("BackColor2", typeof(Color));
         _bordercolor2      = (Color)info.GetValue("BorderColor2", typeof(Color));
         _forecolor2        = (Color)info.GetValue("ForeColor2", typeof(Color));
         _serverfont2       = (ServerFont)info.GetValue("ServerFont2", typeof(ServerFont));
         _bapplyalternative = info.GetBoolean("bApplyAlternative");
     }
 }
 protected override Font GetClientFont(ServerFont sf)
 {
     if (!string.IsNullOrEmpty(_informationid))
     {
         sf.UnderLine = true;
     }
     else
     {
         sf.UnderLine = false;
     }
     return(base.GetClientFont(sf));
 }
Exemple #3
0
 public void From(ServerFont font)
 {
     if (font != null)
     {
         _fontname        = font.FontName;
         _fontsize        = font.FontSize;
         _fontunit        = font.FontUnit;
         _gdicharset      = font.GdiCharSet;
         _gdiverticalfont = font.GdiVerticalFont;
         _bold            = font.Bold;
         _italic          = font.Italic;
         _strikethout     = font.StrikethOut;
         _underline       = font.UnderLine;
     }
 }