表达式。DifferentFirstPageHeaderFooter表达 返回PageSetup 对象的表达式。示例本示例检查活动文档的每一节,查找第一页是否有不同的页眉和页脚,如果有,则显示一条消息。VB 复制 Dim secLoop As Section For Each secLoop In ActiveDocument.Sections If secLoop.PageSetup _ .DifferentFirstPageHeaderFooter = True ...
DifferentFirstPageHeaderFooter FirstPageTray FooterDistance 间距 GutterPos GutterStyle HeaderDistance LayoutMode LeftMargin LineNumbering LinesPage MirrorMargins OddAndEvenPagesHeaderFooter Orientation OtherPagesTray PageHeight PageWidth PaperSize Parent
1 using System;using System.Collections.Generic;using System.Linq;using System.Text;using Spire.Doc;using Spire.Doc.Documents;using Spire.Doc.Fields;using System.Drawing;namespace HeaderFootersDifferentFromFirstPage{ class Program { static void Main(string[] args) { //创建Document类的...
Dim secLoop As Section For Each secLoop In ActiveDocument.Sections If secLoop.PageSetup _ .DifferentFirstPageHeaderFooter = True Then Msgbox "Section " & secLoop.Index _ & " has different first page headers & footers." End If Next secLoop ...
Word 程序集: Microsoft.Office.Interop.Word.dll 如此 如果不同的页眉或页脚使用第一页上。 可 真、 假 或wdUndefined。 C# 复制 public int DifferentFirstPageHeaderFooter { get; set; } 属性值 Int32 适用于 产品版本 Word primary interop assembly Latest 反馈 此页面是否有帮助? 是 ...
You can also return a single HeaderFooter object by using the HeaderFooter property with a Selection object.注意 You cannot add HeaderFooter objects to the HeadersFooters collection.Use the DifferentFirstPageHeaderFooter property with the PageSetup object to specify a different first page. The ...
("sample.docx"); //获取第一个section Section section = doc.Sections[0]; //设置页眉页脚首页不同 section.PageSetup.DifferentFirstPageHeaderFooter = true; //删除首页页眉页脚 section.HeadersFooters.FirstPageHeader.ChildObjects.Clear(); //保存文档 doc.SaveToFile("output.docx", FileFormat.Docx); ...
InfoPath will use the first formatting style it encounters in the resulting form template and discard the remaining formatting. Similarly, any settings that are applied to the first header or footer section in the Word document are applied to the resulting header or footer text in...
The Header/Footer entries are also available in the Header/Footer toolbar. There does not appear to be any AutoText distributed with Ribbon versions of Word. The built-in entries have been transferred to other building blocks. See Automated Boilerplate Using Microsoft Word - Autotext Autocorrect...
section.PageSetup.DifferentOddAndEvenPagesHeaderFooter = true; //设置奇偶数页的页脚 Paragraph P1 = section.HeadersFooters.EvenFooter.AddParagraph(); TextRange EF = P1.AppendText("偶数页页脚"); EF.CharacterFormat.FontName = "Calibri"; EF.CharacterFormat.FontSize = 12; ...