Upravit

Sdílet prostřednictvím


HTMLProjectItem Interface

Definition

Represents an individual project item that’s a project item branch in the Project Explorer in the Microsoft Script Editor.

public interface class HTMLProjectItem : Microsoft::Office::Core::_IMsoDispObj
[System.Runtime.InteropServices.Guid("000C0358-0000-0000-C000-000000000046")]
public interface HTMLProjectItem : Microsoft.Office.Core._IMsoDispObj
[<System.Runtime.InteropServices.Guid("000C0358-0000-0000-C000-000000000046")>]
type HTMLProjectItem = interface
    interface _IMsoDispObj
Public Interface HTMLProjectItem
Implements _IMsoDispObj
Attributes
Implements

Remarks

The HTMLProjectItem object is a member of the HTMLProjectItems collection.

Use HTMLProjectItems(index), where index is the name or index number of a project item, to return a single HTMLProjectItem object. Use the Name property to return the display name of the project item.

Use the Open(MsoHTMLProjectOpen) method to open a project item in source view or text view, and use the IsOpen property to determine whether the project item is currently open.

Use the SaveCopyAs(String) method to save the project item using a new file name.

Properties

Application

Returns an Application object that represents the container application for the object.

Creator

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

IsOpen

Determines if the specified HTML project item is open in the Microsoft Script Editor.

Name

Returns the name of the specified object.

Parent

Returns the Parent object for the specified object.

Text

Returns or sets the HTML text in the HTML editor.

Methods

LoadFromFile(String)

Updates the text in the Microsoft Script Editor with text from the specified file (on disk).

Open(MsoHTMLProjectOpen)

Opens the specified HTML project or HTML project item in the Microsoft Script Editor in one of the views specified by the optional MsoHTMLProjectOpen constants.

SaveCopyAs(String)

Saves the specified HTML project item using a new file name.

Applies to