Share via


SharedParagraphIdFeatureExtensions.Add Method

Definition

Overloads

Add(ISharedFeature<IParagraphIdCollectionFeature>, WordprocessingDocument)

Registers a document to use a shared paragraph collection, which potentially may ensure uniqueness among many documents.

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

Add arbitrary values to be tracked as a shared collection.

Add(ISharedFeature<IParagraphIdCollectionFeature>, WordprocessingDocument)

Registers a document to use a shared paragraph collection, which potentially may ensure uniqueness among many documents.

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)

Parameters

shared
ISharedFeature<IParagraphIdCollectionFeature>

Shared collection feature.

doc
WordprocessingDocument

Document to register with shared paragraph collection.

Returns

Applies to

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

Add arbitrary values to be tracked as a shared collection.

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)

Parameters

shared
ISharedFeature<IParagraphIdCollectionFeature>

Shared collection feature.

paragraphIds
IEnumerable<String>

Paragraph ids to be included with the shared collection.

Returns

Applies to