SharedParagraphIdFeatureExtensions.AddSharedParagraphIdFeature 方法

定义

为共享段落 ID 集合注册文档。

public static DocumentFormat.OpenXml.Features.ISharedFeature<DocumentFormat.OpenXml.Features.IParagraphIdCollectionFeature> AddSharedParagraphIdFeature (this DocumentFormat.OpenXml.Packaging.WordprocessingDocument doc);
static member AddSharedParagraphIdFeature : DocumentFormat.OpenXml.Packaging.WordprocessingDocument -> DocumentFormat.OpenXml.Features.ISharedFeature<DocumentFormat.OpenXml.Features.IParagraphIdCollectionFeature>
<Extension()>
Public Function AddSharedParagraphIdFeature (doc As WordprocessingDocument) As ISharedFeature(Of IParagraphIdCollectionFeature)

参数

doc
WordprocessingDocument

要注册共享集合的文档。

返回

现有或新的共享集合。

适用于