Exemple #1
0
 /// <summary>
 /// Determines whether the specified <see cref="T:System.Object" /> is equal to this instance.
 /// </summary>
 /// <param name="obj">The <see cref="T:System.Object" /> to compare with this instance.</param>
 /// <returns>
 /// <see langword="true" /> if the specified <see cref="T:System.Object" /> is equal to this instance; otherwise, <c>false</c>.
 /// </returns>
 public override bool Equals(object obj)
 {
     if (obj != null)
     {
         if (object.ReferenceEquals(this, obj))
         {
             return(true);
         }
         if (obj is ExcelFont)
         {
             ExcelFont font = obj as ExcelFont;
             return(this == font);
         }
     }
     return(false);
 }
Exemple #2
0
 private void InitOrResetLanguageRelatedFontInfo(ExcelFont font, string language)
 {
     if (language == "ja-Jp")
     {
         font.FontSize     = 11.0;
         font.FontFamily   = ExcelFontFamily.Modern;
         font.FontColor    = new ExcelColor(ExcelPaletteColor.Black);
         font.FontName     = "lr oSVbN";
         font.CharSetIndex = 0x80;
     }
     else
     {
         font.FontSize     = 11.0;
         font.FontFamily   = ExcelFontFamily.Swiss;
         font.FontColor    = new ExcelColor(ExcelPaletteColor.Black);
         font.FontName     = "Calibri";
         font.CharSetIndex = 0;
     }
 }