SharedParagraphIdFeatureExtensions.Add Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 collection feature.
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 collection feature.
- paragraphIds
- IEnumerable<String>
Paragraph ids to be included with the shared collection.