1
我似乎無法將TextFrames垂直放置在頁腳中。我有以下代碼:如何在頁腳中設置Migradoc文本框的位置?
// Left area
var frame = section.Footers.Primary.AddTextFrame();
frame.RelativeVertical = RelativeVertical.Page;
frame.Left = new Unit(40);
frame.Top = new Unit(700);
frame.Width = new Unit(220);
p = frame.AddParagraph();
// Paragraph content
// Right area
frame = section.Footers.Primary.AddTextFrame();
frame.RelativeVertical = RelativeVertical.Page;
frame.Left = ShapePosition.Right;
frame.Top = new Unit(700);
frame.Width = new Unit(220);
p = frame.AddParagraph();
// Paragraph content
// Center
frame = section.Footers.Primary.AddTextFrame();
frame.RelativeVertical = RelativeVertical.Page;
frame.Left = ShapePosition.Center;
frame.Width = new Unit(220);
frame.Top = new Unit(790);
// Paragraph content
不幸的是,這似乎完全忽略frame.Top
通話和所有的3幀出現在同一直線上,即使只有第一和第二應該是(第三應該直接下面)。
我在做什麼錯?