public 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; }
public 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); }