Exemplo n.º 1
0
 public void setFont(cReportFont rhs)
 {
     m_font = rhs;
 }
Exemplo n.º 2
0
 public void setFont(cReportFont rhs)
 {
     m_font = rhs;
 }
Exemplo n.º 3
0
		private void pCopyFontPaint(cReportFont fromFont, cReportFont toFont)
		{
			toFont.setBold(fromFont.getBold());
			toFont.setForeColor(fromFont.getForeColor());
			toFont.setItalic(fromFont.getItalic());
			toFont.setName(fromFont.getName());
			toFont.setSize(fromFont.getSize());
			toFont.setStrike(fromFont.getStrike());
			toFont.setUnderline(fromFont.getUnderline());
		}
Exemplo n.º 4
0
        public static int addFontIfRequired(cReportFont font, ref Font[] m_fnt)
        {
            for(int i = 0; i < m_fnt.Length; i++) {
                if(font.getName() == m_fnt[i].Name 
                    && font.getBold() == m_fnt[i].Bold 
                    && font.getItalic() == m_fnt[i].Italic 
                    && font.getUnderline() == m_fnt[i].Underline 
                    && font.getSize() == m_fnt[i].Size 
                    && font.getStrike() == m_fnt[i].Strikeout) {
                    return i;
                }
            }

            redimPreserve(ref m_fnt, m_fnt.Length + 1);

            FontStyle fontStyle = FontStyle.Regular;
            if (font.getBold()) fontStyle = fontStyle | FontStyle.Bold;
            if (font.getItalic()) fontStyle = fontStyle | FontStyle.Italic;
            if (font.getUnderline()) fontStyle = fontStyle | FontStyle.Underline;
            if (font.getStrike()) fontStyle = fontStyle | FontStyle.Strikeout;

            Font afont = new Font(font.getName(), ((font.getSize() > 0) ? font.getSize() : 3), fontStyle);

            m_fnt[m_fnt.Length - 1] = afont;

            return m_fnt.Length - 1;
        }