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帧出现在同一直线上,即使只有第一和第二应该是(第三应该直接下面)。
我在做什么错?