DocumentProperty 对象是 DocumentProperties 集合的成员。备注使用Microsoft Word Document.BuiltinDocumentProperties (index) 属性(其中 index 是内置文档属性的名称或索引号)返回表示特定内置文档属性的单个 DocumentProperty 对象。使用Word Document.CustomDocumentProperties (index) 属性(其中 index 是自定义文档属性的名称或...
需要expression。 代表Document物件的變數。 註解 若要傳回單一DocumentProperty物件代表特定的內建文件屬性,可以使用BuiltinDocumentProperties屬性。 如果 Microsoft Word 不會定義的其中一個內建文件屬性的值,則讀取該文件屬性的Value屬性會產生錯誤。 如需傳回集合中單一成員的資訊,請參閱從集合傳回物件。
expression是必需的。 一个代表Document对象的变量。 备注 使用BuiltInDocumentProperties属性返回的内置文档属性的集合。 msoPropertyTypeString(MsoDocProperties) 的长度不能超过 255 个字符。 有关返回集合的单个成员的信息,请参阅从集合中返回对象。 示例
expression是必需的。 一个代表Document对象的变量。 备注 使用BuiltInDocumentProperties属性返回的内置文档属性的集合。 msoPropertyTypeString(MsoDocProperties) 的长度不能超过 255 个字符。 有关返回集合的单个成员的信息,请参阅从集合中返回对象。 示例
expression是必需的。 一个代表Document对象的变量。 备注 使用BuiltInDocumentProperties属性返回的内置文档属性的集合。 msoPropertyTypeString(MsoDocProperties) 的长度不能超过 255 个字符。 有关返回集合的单个成员的信息,请参阅从集合中返回对象。 示例
获取document 的一组 customProperty。 TypeScript 复制 readonly customProperties: Word.CustomPropertyCollection; 属性值 Word.CustomPropertyCollection 注解 [ API 集:WordApi 1.3 ]format 指定文档的格式。 TypeScript 复制 format: string; 属性值 string 注解 [ API 集:WordApi 1.3 ]...
定义WordprocessingDocument - OpenXmlPackage 表示Word文档。C# 复制 public class WordprocessingDocument : DocumentFormat.OpenXml.Packaging.OpenXmlPackage, DocumentFormat.OpenXml.Packaging.ISupportedRelationship<DocumentFormat.OpenXml.Packaging.MainDocumentPart>, DocumentFormat.OpenXml.Packaging.ISupportedRelationsh...
Returns or sets the identifying label for the specified object when the current document is saved as a Web page. Read/writeString. IsStyleSeparator 如此如果段落包含特殊的隐藏,则 Microsoft Word 可以显示要加入的另一种段落样式的段落的段落标记。只读的布尔值。
{//Add a main document part.MainDocumentPart mainPart =wordDocument.AddMainDocumentPart();//Create the document structure and add some text.mainPart.Document =newDocumentFormat.OpenXml.Wordprocessing.Document(); Body body= mainPart.Document.AppendChild(newBody()); ...
This example steps through the words in myRange (which spans from the beginning of the active document to the end of the selection) and deletes the word "Franklin" (including the trailing space) wherever it occurs in the range.VB Copiere ...