편집

다음을 통해 공유


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
type Subdocument = interface
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

Returns a Application object that represents the Microsoft Word application.

Creator

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

HasFile

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

Level

Returns the heading level used to create the subdocument.

Locked

True if a subdocument in a master document is locked.

Name

Returns or sets the name of the specified object.

Parent

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

Path

Returns the disk or Web path to the specified object.

Range

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

Methods

Delete()

Deletes the specified object.

Open()

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

Split(Range)

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

Applies to