Ejemplo n.º 1
0
 protected override byte[] GetExtensionData()
 {
     return(Label.GetBytes().Concatenate(BlockSize.GetBytes(),
                                         TextGridLeft.GetBytes(),
                                         TextGridTop.GetBytes(),
                                         TextGridWidth.GetBytes(),
                                         TextGridHeight.GetBytes(),
                                         CellWidth.GetBytes(),
                                         CellHeight.GetBytes(),
                                         TextFgColorIndex.GetBytes(),
                                         TextBgColorIndex.GetBytes(),
                                         PlainTextData.StringToBuff()));
 }
Ejemplo n.º 2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (Width != 0)
        {
            hash ^= Width.GetHashCode();
        }
        if (Height != 0)
        {
            hash ^= Height.GetHashCode();
        }
        if (CellWidth != 0F)
        {
            hash ^= CellWidth.GetHashCode();
        }
        if (CellHeight != 0F)
        {
            hash ^= CellHeight.GetHashCode();
        }
        hash ^= mapCells_.GetHashCode();
        return(hash);
    }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     return(FontSize.GetHashCode() ^ FontName.GetHashCode() ^ FontBold.GetHashCode() ^ FontColor.GetHashCode() ^ FGColor.GetHashCode() ^ Borders[0].GetHashCode() ^ Borders[1].GetHashCode() ^ Borders[2].GetHashCode() ^ Borders[3].GetHashCode() ^ CellWidth.GetHashCode() ^ CellHeight.GetHashCode() ^ HorizontalAlignment.GetHashCode() ^ VerticalAlignment.GetHashCode() ^ WrapText.GetHashCode());
 }
Ejemplo n.º 4
0
        public bool Equals(SheetCellFormats other)
        {
            if (ReferenceEquals(other, null))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(FontSize.Equals(other.FontSize) && FontName.Equals(other.FontName) && FontBold.Equals(other.FontBold) && FontColor.Equals(other.FontColor) && FGColor.Equals(other.FGColor) && Borders[0].Equals(other.Borders[0]) && Borders[1].Equals(other.Borders[1]) && Borders[2].Equals(other.Borders[2]) && Borders[3].Equals(other.Borders[3]) && CellWidth.Equals(other.CellWidth) && CellHeight.Equals(other.CellHeight) && HorizontalAlignment == other.HorizontalAlignment && VerticalAlignment == other.VerticalAlignment && WrapText == other.WrapText);
        }