wdDialogDrawSnapToGrid SnapToGrid、 XGrid、 YGrid、 XOrigin、 YOrigin、 SnapToShapes、 XGridDisplay、 YGridDisplay、 FollowMargins、 ViewGridLines、 DefineLineBasedOnGrid wdDialogEditAutoText Name、 Context、 InsertAs、 Insert、 Add、 Define、 InsertAsText、 Delete、 CompleteAT wdDialogEditCreate...
wdDialogDrawSnapToGrid SnapToGrid、 XGrid、 YGrid、 XOrigin、 YOrigin、 SnapToShapes、 XGridDisplay、 YGridDisplay、 FollowMargins、 ViewGridLines、 DefineLineBasedOnGrid wdDialogEditAutoText Name、 CoNtext、 InsertAs、 Insert、 Add、 Define、 InsertAsText、 Delete、 CompleteAT wdDialogEditCreate...
NoLineBreakAfter 返回或设置行的首尾字符,该字符后,Microsoft Word 将不会中断。 (继承自 _Document) NoLineBreakBefore 返回或设置行的首尾字符,该字符之前的 Microsoft Word 不会中断。 (继承自 _Document) OMathBreakBin 返回或设置一个WdOMathBreakBin枚举值,该值表示当公式跨越两行或更多行时,Micros...
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/25-paragraph/insert-line-and-page-breaks.yamlawaitWord.run(async(context) => { context.document.body.paragraphs.getFirst().insertBreak(Word.BreakType.page,"After");awaitcontext.sync();con...
Step 1Place your cursor at the beginning of the paragraph where you want to add the line. Step 2Go to the "Home" tab in the Word ribbon. Go to Home tab Step 3In the "Paragraph" section, click on the "Borders" . It usually looks like a square divided into four smaller squar...
Word.BreakType | "Page" | "Next" | "SectionNext" | "SectionContinuous" | "SectionEven" | "SectionOdd" | "Line" 必填。 要添加到文档的分隔符类型。 insertLocation before | after | "Before" | "After" 必填。 该值必须为“Before”或“After”。 返回 void 注解 [ API 集:WordApi 1.1 ...
String[] lines= run.getText(0).split("\n");if(lines.length > 0) {//set first line into XWPFRunrun.setText(lines[0], 0);for(inti = 1; i < lines.length; i++) {//add break and insert new textrun.addBreak(); run.setText(lines[i]); ...
document.add_heading('标题1',1)# 首行缩进两个字符paragraph_format = style.paragraph_format paragraph_format.first_line_indent = Cm(0.74)# 段落p1 = document.add_paragraph('你们平时')# 字体加粗p1.add_run('Word文档').bold =True# 斜体p1.add_run('用的多吗?').italic =True# 列表document...
1 Move your cursor and click on the line where you want to add a section break.2 Click on the menu tab labeled "Page Layout," then click the arrow next to "Breaks."3 Select your section break from the list. You can choose "Next Page," "Continuous," "Even Page" or "Odd Page."...
FarEastLineBreakControl 如此如果 Microsoft Word 将东亚语言文字的换行规则应用于指定的段落。如果仅有某些指定段落的FarEastLineBreakControl属性设置为True,则返回wdUndefined。读/写长。 FirstLineIndent 返回或设置首行的行或悬挂缩进的值 (以磅为单位)。用正值设置首行缩进,并使用一个负值设置悬挂缩进。读/写单个...