Added support for iTextSharp
Changed code that determines line color for thin lines. Temporary fix for "*Resolved Transition Text*" bug Removed Comment
This commit is contained in:
@@ -1869,27 +1869,6 @@ namespace Volian.Controls.Library
|
||||
//Console.WriteLine("TableWidth = {0}, lineMax = '{1}', myFont = {2}", max, lineMax, myFont);
|
||||
return max;
|
||||
}
|
||||
// OLD - RHM 3-24-2010 public float TableWidth(Font myFont, string txt, bool addBorder)
|
||||
//{
|
||||
// string[] lines = txt.Split("\n".ToCharArray());
|
||||
// float max = 0;
|
||||
// string lineMax = "";
|
||||
// Graphics g = this.CreateGraphics();
|
||||
// PointF pnt = new PointF(0, 0);
|
||||
// foreach (string line in lines)
|
||||
// {
|
||||
// string line2 = (addBorder ? "--" : "") + Regex.Replace(line, @"\\.*? ", ""); // Remove RTF Commands
|
||||
// SizeF siz = g.MeasureString(line2, myFont, pnt, StringFormat.GenericTypographic);
|
||||
// if (siz.Width + _MyStepPanel.MyStepPanelSettings.TableWidthAdjust > max)
|
||||
// {
|
||||
// max = siz.Width + _MyStepPanel.MyStepPanelSettings.TableWidthAdjust;
|
||||
// lineMax = line2;
|
||||
// }
|
||||
// }
|
||||
// //vlnStackTrace.ShowStackLocal("TableWidth", 1, 10);
|
||||
// Console.WriteLine("TableWidth = {0}, lineMax = '{1}', myFont = {2}", max, lineMax, myFont);
|
||||
// return max;
|
||||
//}
|
||||
/// <summary>
|
||||
/// Calculates the table location
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user