expression是必需的。 一个代表Document对象的变量。 示例 如果活动窗口包含文档,本示例将“标题 1”样式重新定义为居中。 VB IfActiveDocument.ActiveWindow.Type = wdWindowDocumentThenActiveDocument.Styles("Heading 1") _ .ParagraphFormat.Alignment = wdAlignParagraphCenterEndIf ...
命名空间: Microsoft.Office.Interop.Word 程序集: Microsoft.Office.Interop.Word.dll 返回文档的类型(模板或文档)。 C# 复制 public Microsoft.Office.Interop.Word.WdDocumentType Type { get; } 属性值 WdDocumentType 适用于 产品版本 Word primary interop assembly Latest ...
名称值Description wdTypeDocument 0 文档。 wdTypeFrameset 2 框架集。 wdTypeTemplate 1 模板。支持和反馈有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。反馈 此页面是否有帮助? 是 否 中文...
Microsoft.Office.Tools.Word(在 Microsoft.Office.Tools.Word.dll 中) 语法 C# WdDocumentType Type {get; } 属性值 类型:Microsoft.Office.Interop.Word.WdDocumentType WdDocumentType值之一。 .NET Framework 安全性 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任...
public WdDocumentType Type { get; } 属性值 类型:Microsoft.Office.Interop.Word.WdDocumentType WdDocumentType 值之一。 示例 下面的代码示例显示一条包含文档类型的消息。 此示例针对的是文档级自定义项。 C# 复制 private void DocumentType() { switch (this.Type) { case Word.WdDocumentType.wdType...
WordprocessingDocument.ChangeDocumentType(WordprocessingDocumentType) 方法 参考 反馈 定义 命名空间: DocumentFormat.OpenXml.Packaging 程序集: DocumentFormat.OpenXml.dll 包: DocumentFormat.OpenXml v3.0.1 更改文档类型。 C# 复制 public void ChangeDocumentType (DocumentFormat.OpenXml.Wordpr...
Microsoft.Office.Tools.Word.dll, Microsoft.Office.Tools.Word.v4.0.Utilities.dll Gets the document type (template or document). C# publicMicrosoft.Office.Interop.Word.WdDocumentType Type {get; } Property Value WdDocumentType One of theWdDocumentTypevalues. ...
For example, let us say that you are creating a Document Set to manage the product design process. This Document Set might include a Product Design Document (a Microsoft Word document), a Design Drawing (a Microsoft Visio drawing), and Performance Specs (a Microsoft ...
For example, let us say that you are creating a Document Set to manage the product design process. This Document Set might include a Product Design Document (a Microsoft Word document), a Design Drawing (a Microsoft Visio drawing), and Performance Specs (a Microsof...
Rkaiser108Tabbing moves the selection from one Formfield to the next in that document when it is open in Word in Microsoft 365 Apps for enterprise Version 2306 (Build 16259.20182 Click-to-Run) Current Channel. When you open the document in Word do you see the App Launcher - the nine dots...