命名空间: Microsoft.Office.Interop.Word 程序集: Microsoft.Office.Interop.Word.dll 适当缩小文本的字体大小,使文档的页数减少。 C# 复制 public void FitToPages (); 注解 如果Word 无法将文档的页数减少一页,将出现错误。 适用于 产品版本 Word primary interop assembly Latest ...
expression.FitToPages 需要expression。 代表Document物件的變數。 註解 如果Word 無法將頁面數減少一頁,就會發生錯誤。 範例 這則範例會嘗試將使用中文件的頁面數減少一頁。 VB OnErrorGoToerrhandler ActiveDocument.FitToPages errhandler:IfErr =5538ThenMsgBox"Fit to pages failed" ...
● To constrain the picture's proportions, uncheck the Lock aspect ratio checkbox in the Size group on the Picture Format tab. Here are the steps on how to crop a picture in Microsoft Word on Android, with images: Step 1:Open the Microsoft Word app on your Android device Step 2:Open ...
如何从 Word JavaScript API 获取当前 Excel 上下文的实例? 调用Excel.run((context) => {..})方法,以返回当前的 Excel 上下文。 可以使用this.context.currentAPI 获取对 Excel 上下文的引用。 使用Excel.getContext()API 获取当前 Excel 上下文的实例。
缩小文本的字体大小,使文档的页数减少。如果 Word 无法将文档的页数减少一页,则该方法会导致出错。 expression.FitToPages expression 必需。该表达…
When prompted, provide the following information to create your add-in project.Choose a project type: Office Add-in Task Pane project Choose a script type: JavaScript What do you want to name your add-in? My Office Add-in Which Office client application would you like to support? Word...
FitTextWidth 返回或设置在其中 Microsoft Word 文本适合当前所选内容中的宽度 (以当前度量单位)。 Flags 返回或设置所选内容的属性。 Font 返回或设置一个 Font 对象,该对象表示指定对象的字符格式设置。 FootnoteOptions 返回一个 FootnoteOptions 对象,该对象代表选定内容中的脚注属性。 Footnotes 返回一个 Footno...
Office.Interop.Word 程序集: Microsoft.Office.Interop.Word.dll 调整关系图中节点中的文本大小,使其适合节点的边界。 C# 复制 public void FitText (); 注解 此方法仅适用于 Microsoft Office PowerPoint 2003。 适用于 产品版本 Word primary interop assembly Latest 反馈 此页面是否有帮助? 是 否 ...
OpenXml.Wordprocessing 程序集: DocumentFormat.OpenXml.dll 包: DocumentFormat.OpenXml v3.0.1 定义PageMargin 类。 此类在 Office 2007 及更高版本中可用。 当对象序列化为 xml 时,其限定名称为 w:pgMar。 C# 复制 public class PageMargin : DocumentFormat.OpenXml.OpenXmlLeafElement 继承 Object ...
Very Tight: Increases the width of the text to eliminate the space between characters in each word. Tight: Increases the width of the text to minimize the space between characters in each word. Normal:This is the default selection and allows a normal amount of space between the characters wit...