Section Interface

Definition

Represents a single section in a selection, range, or document.

public interface class Section
[System.Runtime.InteropServices.Guid("00020959-0000-0000-C000-000000000046")]
public interface Section
type Section = interface
Public Interface Section
Attributes

Remarks

The Section object is a member of the Sections collection. The Sections collection includes all the sections in a selection, range, or document.

Use Sections(index), where index is the index number, to return a single Section object.

Use the Add(Object, Object) method or the InsertBreak(Object) method to add a new section to a document.

Note   The Headers and Footers properties of the specified Section object return a HeadersFooters object.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Borders

Returns a Borders collection that represents all the borders for the specified object.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Footers

Returns a HeadersFooters collection that represents the footers in the specified section.

Headers

Returns a HeadersFooters collection that represents the headers for the specified section.

Index

Returns an Integer that represents the position of an item in a collection.

PageSetup

Returns a PageSetup object that's associated with the specified section.

Parent

Returns an object that represents the parent object of the specified object.

ProtectedForForms

True if the specified section is protected for forms. When a section is protected for forms, you can select and modify text only in form fields.

Range

Returns a Range object that represents the portion of a document that's contained in the specified object.

Applies to