Use the PDFToken from the Enhanced Document DocVersion Config to identify Enhanced Document links.
This commit is contained in:
parent
15f3b2ce09
commit
acffe4982e
@ -2934,12 +2934,26 @@ namespace Volian.Controls.Library
|
||||
//g.DrawString(lblTab.Text, MyItemInfo.MyTab.MyFont.WindowsFont, Brushes.Blue, new RectangleF(new PointF(Convert.ToSingle(lblTab.Location.X-7), Convert.ToSingle(lblTab.Location.Y)), MyStepPanel.MyStepPanelSettings.NumberSize), StringFormat.GenericDefault);
|
||||
//g.DrawLine(Pens.DarkGreen, lblTab.Location.X-7, 0, lblTab.Location.X-7, this.Height);
|
||||
// Show a small E to indicate Enhanced Steps
|
||||
if (MyItemInfo.GetMyEnhancedDocuments().Count > 0)
|
||||
DVEnhancedDocuments dveds = MyItemInfo.MyDocVersion.DocVersionConfig.MyEnhancedDocuments;
|
||||
float x = 0;
|
||||
float y = 0;
|
||||
foreach (EnhancedDocument ed in MyItemInfo.GetMyEnhancedDocuments())
|
||||
{
|
||||
g.DrawLine(Pens.DarkGreen, 18, 1, 18, 6);
|
||||
g.DrawLine(Pens.DarkGreen, 18, 1, 21, 1);
|
||||
g.DrawLine(Pens.DarkGreen, 18, 3, 21, 3);
|
||||
g.DrawLine(Pens.DarkGreen, 18, 6, 21, 6);
|
||||
DVEnhancedDocument dved = dveds.GetByType(ed.Type);
|
||||
Font fnt = new System.Drawing.Font("Arial", 5);
|
||||
//g.DrawLine(Pens.DarkGreen, 18, 1, 18, 6);
|
||||
//g.DrawLine(Pens.DarkGreen, 18, 1, 21, 1);
|
||||
//g.DrawLine(Pens.DarkGreen, 18, 3, 21, 3);
|
||||
//g.DrawLine(Pens.DarkGreen, 18, 6, 21, 6);
|
||||
//g.DrawString("B", fnt, Brushes.Green, new RectangleF(new PointF(0,0), this.Size), StringFormat.GenericDefault);
|
||||
g.DrawString(dved.PdfToken, fnt, Brushes.Green, new RectangleF(new PointF(x,y), this.Size), StringFormat.GenericDefault);
|
||||
if (y > 0)
|
||||
{
|
||||
x += 18;
|
||||
y = 0;
|
||||
}
|
||||
else
|
||||
y = 14;
|
||||
}
|
||||
//g.DrawLine(Pens.DarkGreen, MyStepRTB.Location.X - 7, 0, MyStepRTB.Location.X - 7, this.Height);
|
||||
//g.DrawString(TabText, MyItemInfo.MyTab.MyFont.WindowsFont, Brushes.Black, new RectangleF(new PointF(Convert.ToSingle(TabLocation.X), Convert.ToSingle(TabLocation.Y)), MyStepPanel.MyStepPanelSettings.NumberSize), StringFormat.GenericDefault);
|
||||
|
Loading…
x
Reference in New Issue
Block a user