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.StringRequired String. The name of the file reference.
Section
Type: System.ObjectOptional Object. The section of the task pane where the file reference exists. Can be any MsoFileNewSection constant.
DisplayName
Type: System.ObjectOptional Object. The display text of the file reference.
Action
Type: System.ObjectOptional Object. The action taken when a user clicks on the item. Can be any MsoFileNewAction constant.
Return Value
Type: System.Boolean