예제 #1
0
		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;
		}		
예제 #2
0
        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);
        }