Show / Hide Table of Contents

Class CKSection

Represents a wrapper for the Word.Section object, exposing common functionality for a section in a Word document.

Inheritance
object
CKRange
CKSection
Implements
IDOMObject
IDisposable
Inherited Members
CKRange._isRefreshing
CKRange.TryFindNext(string, bool, bool, bool)
CKRange.Cache<T>(ref T)
CKRange.Cache<T>(ref T, Func<T>)
CKRange.SetCache<T>(ref T, T, Action<T>)
CKRange.CheckDirtyFor()
CKRange.CollapseToEnd()
CKRange.CollapseToStart()
CKRange.DoRefreshThings()
CKRange.Equals(object)
CKRange.Equals(CKRange)
CKRange.GetHashCode()
CKRange.Dispose(bool)
CKRange.SetBackgroundColor(WdColor)
CKRange.Delete(CKTables)
CKRange.Contains(CKRange)
CKRange.Cells
CKRange.COMRange
CKRange.Text
CKRange.Font
CKRange.PrettyText
CKRange.IsCOMDeferred
CKRange.ScrunchedText
CKRange.Start
CKRange.End
CKRange.IsDirty
CKRange.IsOrphan
CKRange.Parent
CKRange.Document
CKRange.Application
CKRange.Sections
CKRange.Paragraphs
CKRange.Tables
CKRange.FormattedText
CKRange.Snapshot
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
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.

Overrides
object.ToString()

Implements

IDOMObject
IDisposable

Extension Methods

PingService.PingPong<T>(T, string)
PingService.PingPong<T>(T, string, string)
PingService.PingPong<T, TResult>(T, Func<TResult>, string, string)
PingService.Ping<T>(T, string)
PingService.Ping<T>(T, string, string)
PingService.Ping<T>(T, Type[], string)
PingService.Pong<T>(T, string)
PingService.Pong<T>(T, string, string)
PingService.Pong<T>(T, Type, string)
PingService.Pong<T>(T, Type[], string)
PingService.Pong<T, TResult>(T, Func<TResult>, string, string)
In this article
Back to top Generated by DocFX