Added Profile debug
Changed NextItem property to use GetNextItem method when printing Changed RegisterFont to improve print performance
This commit is contained in:
@@ -10,6 +10,7 @@ using Itenso.Rtf.Interpreter;
|
||||
using Itenso.Rtf.Support;
|
||||
using Volian.Controls.Library;
|
||||
using VEPROMS.CSLA.Library;
|
||||
using Volian.Base.Library;
|
||||
|
||||
namespace Volian.Print.Library
|
||||
{
|
||||
@@ -90,7 +91,10 @@ namespace Volian.Print.Library
|
||||
{
|
||||
if (_IParagraph == null)
|
||||
{
|
||||
_IParagraph = RtfToParagraph(Rtf, HasIndent);
|
||||
int profileDepth = ProfileTimer.Push(">>>> VlnPrintObject.IParagraph");
|
||||
string myRtf = Rtf;
|
||||
_IParagraph = RtfToParagraph(myRtf, HasIndent);
|
||||
ProfileTimer.Pop(profileDepth);
|
||||
}
|
||||
return _IParagraph;
|
||||
}
|
||||
@@ -107,8 +111,10 @@ namespace Volian.Print.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
int profileDepth = ProfileTimer.Push(">>>> vlnPrintObject.Height");
|
||||
if (_Height == 0)
|
||||
_Height = GetParagraphHeight(MyContentByte, IParagraph, Width);
|
||||
ProfileTimer.Pop(profileDepth);
|
||||
return _Height;
|
||||
}
|
||||
set { _Height = value; }
|
||||
|
Reference in New Issue
Block a user