Share via


WebFile.Edit Method

SharePoint Designer Developer Reference

The Edit method is used to open compatible files in a page window.

Syntax

expression.Edit(ViewMode)

expression   A variable that represents a WebFile object.

Parameters

Name Required/Optional Data Type Description
ViewMode Optional Long A PageViewMode constant representing the view mode in which you wish to edit the Web file. The default value is PageViewDefault.

Remarks

Compatible files include file formats such as HTML, CSS, and ASP. To open files of other types, use the Open method. You cannot use the Edit method to open HTML files that do not have extensions or have incorrect extensions.

See Also