コード例 #1
0
ファイル: Style.cs プロジェクト: greatPurpose/bizprocess
 public Style()
 {
     FontName = "Arial";
     FontSize = 11;
     TextStyle.Add(TextStyleType.Normal);
     FontColor     = Color.Black;
     Aligment      = new Aligment();
     DocumentTitle = DocumentTitle.None;
 }
コード例 #2
0
ファイル: Style.cs プロジェクト: greatPurpose/bizprocess
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (FontName != null ? FontName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ FontSize;
         //hashCode = (hashCode * 397) ^ (int)TextStyle;
         hashCode = (hashCode * 397) ^ FontColor.GetHashCode();
         hashCode = (hashCode * 397) ^ (Aligment != null ? Aligment.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #3
0
ファイル: Style.cs プロジェクト: greatPurpose/bizprocess
 protected bool Equals(Aligment other)
 {
     return(VerticalAligment == other.VerticalAligment && HorizontalAligment == other.HorizontalAligment && WrapText.Equals(other.WrapText));
 }