Creator 属性

       

返回指明创建对象的应用程序的字符串。如果对象是在 Microsoft FrontPage 中创建的,该属性将返回字符串“FrontPage.Editor.Document”。只读,String 类型。

注意  FrontPage 中的 Creator 属性不同于其他 Microsoft Office 对象中的 Creator 属性。FrontPage 的 Creator 属性使用字符串格式,而 Office 对象使用 32 位整数来标识创建文件的应用程序。

示例

本示例检查文件的创建者是否为 FrontPage。

Private Sub GetCreator()
    Dim myCreator As String

    myCreator = ActiveWeb.RootFolder.Files(0).Creator

    If myCreator <> "FrontPage.Editor.Document" Then
        MsgBox "This file was not created by FrontPage."
    End If
End Sub