Пример #1
0
        /// <summary>
        /// Create a new clone of the current stack with new references to the styles in the stack (inner styles are not cloned)
        /// </summary>
        /// <returns></returns>
        public StyleStack Clone()
        {
            StyleStack styles = this.MemberwiseClone() as StyleStack;

            styles._styles = new List <Style>();
            for (int i = 0; i < this._styles.Count; i++)
            {
                styles._styles.Add(this._styles[i]);
            }
            return(styles);
        }
Пример #2
0
 internal PDFRenderContext(DrawingOrigin origin, int pageCount, PDFOutputFormatting format, Styles.StyleStack stack, PDFItemCollection items, PDFTraceLog log, PDFPerformanceMonitor perfmon, IPDFDocument document) 
     : base(stack, items, log, perfmon, document)
 {
     this._origin = origin;
     this._offset = new PDFPoint();
     this._space = new PDFSize();
     this._pgCount = pageCount;
     this._pgindex = 0;
     this._format = format;
     
 }
 internal PDFContextStyleBase(Styles.StyleStack stylesstack, PDFItemCollection items, PDFTraceLog log, PDFPerformanceMonitor perfmon, IPDFDocument document)
     : base(items, log, perfmon, document)
 {
     this._stylestack = stylesstack;
 }