public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("    [Pattern Formatting]\n");buffer.append("          .fillpattern= ").append(Integer.toHexString(getFillPattern())).append("\n");buffer.append("          .fgcoloridx= ").append(Integer.toHexString(getFillForegroundColor())).append("\n");buffer.append("          .bgcoloridx= ").append(Integer.toHexString(getFillBackgroundColor())).append("\n");buffer.append("    [/Pattern Formatting]\n");return buffer.toString();}

public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("    [Pattern Formatting]\n");buffer.Append("          .Fillpattern= ").Append(StringUtil.ToHexString((int) FillPattern)).Append("\n");buffer.Append("          .fgcoloridx= ").Append(StringUtil.ToHexString(FillForegroundColor)).Append("\n");buffer.Append("          .bgcoloridx= ").Append(StringUtil.ToHexString(FillBackgroundColor)).Append("\n");buffer.Append("    [/Pattern Formatting]\n");return buffer.ToString();}
