Share via


NewFile.Remove Method

Removes an item from the New Item task pane.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Function Remove ( _
    FileName As String, _
    Section As Object, _
    DisplayName As Object, _
    Action As Object _
) As Boolean
'Usage
Dim instance As NewFile
Dim FileName As String
Dim Section As Object
Dim DisplayName As Object
Dim Action As Object
Dim returnValue As Boolean

returnValue = instance.Remove(FileName, _
    Section, DisplayName, Action)
bool Remove(
    string FileName,
    Object Section,
    Object DisplayName,
    Object Action
)

Parameters

  • FileName
    Type: System.String

    Required String. The name of the file reference.

  • DisplayName
    Type: System.Object

    Optional Object. The display text of the file reference.

Return Value

Type: System.Boolean

See Also

Reference

NewFile Interface

NewFile Members

Microsoft.Office.Core Namespace