Subdocument Subdocument Subdocument Interface

Definition

Represents a subdocument within a document or range.

public interface class Subdocument
[System.Runtime.InteropServices.Guid("00020989-0000-0000-C000-000000000046")]
public interface Subdocument
Public Interface Subdocument
Attributes

Remarks

The Subdocument object is a member of the Subdocuments collection. The Subdocuments collection includes all the subdocuments in a range or document.

Use Subdocuments(index), where index is the index number, to return a single Subdocument object.

Use the AddFromFile(Object, Object, Object, Object, Object, Object, Object, Object) or AddFromRange(Range) method to add a subdocument to a document.

Properties

Application Application Application

Returns a Application object that represents the Microsoft Word application.

Creator Creator Creator

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

HasFile HasFile HasFile

True if the specified subdocument has been saved to a file.

Level Level Level

Returns the heading level used to create the subdocument.

Locked Locked Locked

True if a subdocument in a master document is locked.

Name Name Name

Returns or sets the name of the specified object.

Parent Parent Parent

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

Path Path Path

Returns the disk or Web path to the specified object.

Range Range Range

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

Methods

Delete() Delete() Delete()

Deletes the specified object.

Open() Open() Open()

Opens the specified object. Returns a Document object representing the opened object.

Split(Range) Split(Range) Split(Range)

Divides an existing subdocument into two subdocuments at the same level in master document view or outline view.

Applies to