Example #1
0
		internal string GetPdfPattern(string patternname)
		{
            PdfPatternEntry pe = (PdfPatternEntry)patterns[patternname];
			if (pe != null)
				return pe.pattern;

			string name = "P" + (patterns.Count + 1).ToString();
            pe = new PdfPatternEntry(pa, name,patternname);
            patterns.Add(patternname, pe);
			return pe.pattern;
		}		
Example #2
0
        internal string GetPdfPattern(string patternname)
        {
            PdfPatternEntry pe = (PdfPatternEntry)patterns[patternname];

            if (pe != null)
            {
                return(pe.pattern);
            }

            string name = "P" + (patterns.Count + 1).ToString();

            pe = new PdfPatternEntry(pa, name, patternname);
            patterns.Add(patternname, pe);
            return(pe.pattern);
        }