示例#1
0
        internal override void Format(Area area, FormatInfo previousFormatInfo)
        {
            FormattedTextFrame formattedTextFrame = new FormattedTextFrame(this.textframe, this.documentRenderer, this.fieldInfos);

            formattedTextFrame.Format(this.gfx);
            ((TextFrameFormatInfo)this.renderInfo.FormatInfo).formattedTextFrame = formattedTextFrame;
            base.Format(area, previousFormatInfo);
        }
示例#2
0
        void RenderContent()
        {
            FormattedTextFrame formattedTextFrame = ((TextFrameFormatInfo)this.renderInfo.FormatInfo).formattedTextFrame;

            RenderInfo[] renderInfos = formattedTextFrame.GetRenderInfos();
            if (renderInfos == null)
            {
                return;
            }

            XGraphicsState state = Transform();

            RenderByInfos(renderInfos);
            ResetTransform(state);
        }