SharedParagraphIdFeatureExtensions.Add 方法

定义

重载

Add(ISharedFeature<IParagraphIdCollectionFeature>, WordprocessingDocument)

注册文档以使用共享段落集合,这可能确保许多文档的唯一性。

Add(ISharedFeature<IParagraphIdCollectionFeature>, IEnumerable<String>)

添加要作为共享集合进行跟踪的任意值。

Add(ISharedFeature<IParagraphIdCollectionFeature>, WordprocessingDocument)

注册文档以使用共享段落集合,这可能确保许多文档的唯一性。

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

参数

shared
ISharedFeature<IParagraphIdCollectionFeature>

共享集合功能。

doc
WordprocessingDocument

要注册到共享段落集合的文档。

返回

适用于

Add(ISharedFeature<IParagraphIdCollectionFeature>, IEnumerable<String>)

添加要作为共享集合进行跟踪的任意值。

public static DocumentFormat.OpenXml.Features.ISharedFeature<DocumentFormat.OpenXml.Features.IParagraphIdCollectionFeature> Add (this DocumentFormat.OpenXml.Features.ISharedFeature<DocumentFormat.OpenXml.Features.IParagraphIdCollectionFeature> shared, System.Collections.Generic.IEnumerable<string> paragraphIds);
static member Add : DocumentFormat.OpenXml.Features.ISharedFeature<DocumentFormat.OpenXml.Features.IParagraphIdCollectionFeature> * seq<string> -> DocumentFormat.OpenXml.Features.ISharedFeature<DocumentFormat.OpenXml.Features.IParagraphIdCollectionFeature>
<Extension()>
Public Function Add (shared As ISharedFeature(Of IParagraphIdCollectionFeature), paragraphIds As IEnumerable(Of String)) As ISharedFeature(Of IParagraphIdCollectionFeature)

参数

shared
ISharedFeature<IParagraphIdCollectionFeature>

共享集合功能。

paragraphIds
IEnumerable<String>

要包含在共享集合中的段落 ID。

返回

适用于