Example #1
0
 /// <summary>
 /// Combines the font properties of another FontInfo with this instance.
 /// </summary>
 /// <param name="font">Object to merge values with.</param>
 public void MergeWith(FontInfo font) 
 {
     if (font != null) 
     {
         Names = font.Names;
         Size = font.Size;
         Bold = font.Bold;
         Italic = font.Italic;
         Strikeout = font.Strikeout;
         Underline = font.Underline;
     }
 }
Example #2
0
 /// <summary>
 /// Copies the font properties of another FontInfo into this instance.
 /// </summary>
 /// <param name="info">Object to copy from.</param>
 public void CopyFontNamesAndSizeFrom(FontInfo info) 
 {
     if (info != null) 
     {
         Names = info.Names;
         Size = info.Size;
     }
 }