Edit

Share via


NewFile.Add(String, Object, Object, Object) Method

Definition

Adds a new item to the New Item task pane.

public bool Add (string FileName, object Section, object DisplayName, object Action);
abstract member Add : string * obj * obj * obj -> bool
Public Function Add (FileName As String, Optional Section As Object, Optional DisplayName As Object, Optional Action As Object) As Boolean

Parameters

FileName
String

Required String. The name of the file to add to the list of files on the task pane.

Section
Object

Optional Object. The section to which to add the file. Can be any MsoFileNewSection constant.

DisplayName
Object

Optional Object. The text to display in the task pane.

Action
Object

Optional Object. The action to take when a user clicks on the item. Can be any MsoFileNewAction constant.

Returns

Remarks

This method returns True if the item was successfully added; False otherwise.

Applies to