[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.GcWordDocument.SplitDocument

SplitDocument Method

SplitDocument(params (RangeBase splitRange, FormattingCopyStrategy copyStrategy)[])

Splits the current document into several documents based on specified ranges and formatting copy strategies.

Declaration
public IEnumerable<GcWordDocument> SplitDocument(params (RangeBase splitRange, FormattingCopyStrategy copyStrategy)[] splitRanges)
Public Function SplitDocument(ParamArray splitRanges As (splitRange As RangeBase, copyStrategy As FormattingCopyStrategy)()) As IEnumerable(Of GcWordDocument)
Parameters
Type Name Description
(RangeBase splitRange, FormattingCopyStrategy copyStrategy)[] splitRanges

An array of pairs of ranges in the current document, and corresponding formatting copy strategies.

Returns
Type Description
IEnumerable<GcWordDocument>

A collection of documents created according to the specified splitRanges.

SplitDocument(FormattingCopyStrategy, params RangeBase[])

Splits the current document into several documents based on specified ranges and a common formatting copy strategy.

Declaration
public IEnumerable<GcWordDocument> SplitDocument(FormattingCopyStrategy copyStrategy, params RangeBase[] splitRanges)
Public Function SplitDocument(copyStrategy As FormattingCopyStrategy, ParamArray splitRanges As RangeBase()) As IEnumerable(Of GcWordDocument)
Parameters
Type Name Description
FormattingCopyStrategy copyStrategy

The formatting copy strategy to use.

RangeBase[] splitRanges

An array of ranges in the current document.

Returns
Type Description
IEnumerable<GcWordDocument>

A collection of documents created according to the specified splitRanges.

SplitDocument(params RangeBase[])

Splits the current document into several documents based on specified ranges, using Copy to preserve formatting of the source document.

Declaration
public IEnumerable<GcWordDocument> SplitDocument(params RangeBase[] splitRanges)
Public Function SplitDocument(ParamArray splitRanges As RangeBase()) As IEnumerable(Of GcWordDocument)
Parameters
Type Name Description
RangeBase[] splitRanges

An array of ranges in the current document.

Returns
Type Description
IEnumerable<GcWordDocument>

A collection of documents created according to the specified splitRanges.