Class CKSection
Represents a wrapper for the Word.Section object, exposing common functionality for a section in a Word document.
Inherited Members
Namespace: CoverageKiller2.DOM
Assembly: CoverageKiller2.dll
Syntax
public class CKSection : CKRange, IDOMObject, IDisposable
Constructors
CKSection(Section, IDOMObject)
Initializes a new instance of the CKSection class.
Declaration
public CKSection(Section section, IDOMObject parent)
Parameters
Type | Name | Description |
---|---|---|
Section | section | The Word.Section object to wrap. |
IDOMObject | parent |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the section parameter is null. |
Properties
COMSection
Do not use: probably will be hidden. Gets the underlying Word.Section COM object.
Declaration
public Section COMSection { get; }
Property Value
Type | Description |
---|---|
Section |
FooterRange
Gets or sets the primary footer range for this section. Setting this property replaces the formatted content of the footer with that of the provided range.
Declaration
public CKRange FooterRange { get; set; }
Property Value
Type | Description |
---|---|
CKRange |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the value is null. |
HeaderRange
Gets or sets the primary header range for this section. Setting this property replaces the formatted content of the header with that of the provided range.
Declaration
public CKRange HeaderRange { get; set; }
Property Value
Type | Description |
---|---|
CKRange |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the value is null. |
PageSetup
Gets the page setup properties for this section.
Declaration
public PageSetup PageSetup { get; }
Property Value
Type | Description |
---|---|
PageSetup |
Methods
ToString()
Returns a string representation of the current section.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representing the section's range. |