ParagraphIdFeatureExtensions.AddParagraphIdFeature 方法

定义

添加段落 ID 功能(如果尚未注册)。

public static void AddParagraphIdFeature (this DocumentFormat.OpenXml.Packaging.WordprocessingDocument doc, DocumentFormat.OpenXml.Features.ParagraphIdOptions? options = default);
static member AddParagraphIdFeature : DocumentFormat.OpenXml.Packaging.WordprocessingDocument * DocumentFormat.OpenXml.Features.ParagraphIdOptions -> unit
<Extension()>
Public Sub AddParagraphIdFeature (doc As WordprocessingDocument, Optional options As ParagraphIdOptions = Nothing)

参数

doc
WordprocessingDocument

要向其添加功能的文档。

options
ParagraphIdOptions

应如何生成段落 ID 的选项。

适用于