'DeclarationPublic Class HeadingSplitOptions Inherits SplitOptions
'UsageDim instance As HeadingSplitOptions
public class HeadingSplitOptions : SplitOptions
'DeclarationPublic Class HeadingSplitOptions Inherits SplitOptions
'UsageDim instance As HeadingSplitOptions
public class HeadingSplitOptions : SplitOptions
var options = new HeadingSplitOptions { HeadingLevel = 2, // Splits at Heading 1 and Heading 2 CustomHeadingStyleIds = { "Chapter" }, // Also splits at custom styles UseHeadingTextAsDocumentName = true // Names output documents dynamically }; var documents = DocX.Split(doc, options);
System.Object
Xceed.Document.NET.SplitOptions
Xceed.Document.NET.HeadingSplitOptions
| Name | Description | |
|---|---|---|
![]() | HeadingSplitOptions Constructor | Overloaded. |
| Name | Description | |
|---|---|---|
![]() | Criteria | Overridden. Gets the SplitCriteria used by the split operation. |
![]() | CustomHeadingStyleIds | |
![]() | HeadingLevel | Gets the maximum heading level used as a reference for the split operation. |
![]() | IncludeSplitMarkerInNewDocument | Gets or sets if the element matching the SplitCriteria will become the first element of the new Document. (Inherited from Xceed.Document.NET.SplitOptions) |
![]() | NameSelector | (Inherited from Xceed.Document.NET.SplitOptions) |
![]() | PreserveHeadersAndFooters | Gets or sets if header & footer references, as well as the other properties from the original Document's sections, are preserved on every resulting Document. (Inherited from Xceed.Document.NET.SplitOptions) |
![]() | SkipEmptyDocuments |
Gets or sets if Documents containing no real content will be discarded from the returned list. (Inherited from Xceed.Document.NET.SplitOptions) |
![]() | SpecificHeadingLevels | Gets or sets the optional non-contiguous list of heading levels at which the Document will be split. |
![]() | UseHeadingTextAsDocumentName |
.NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.
.NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.