我似乎无法让 TextFrames 垂直定位在页脚中。我有以下代码:
// 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 帧都出现在同一行,即使只有第一帧和第二帧应该是(第三帧应该直接在下面)。
我究竟做错了什么?