Hyperlink.CreateNewDocument(String, Boolean, Boolean) Method

Definition

Creates a new document linked to the specified hyperlink.

public:
 void CreateNewDocument(System::String ^ FileName, bool EditNow, bool Overwrite);
public void CreateNewDocument (string FileName, bool EditNow, bool Overwrite);
abstract member CreateNewDocument : string * bool * bool -> unit
Public Sub CreateNewDocument (FileName As String, EditNow As Boolean, Overwrite As Boolean)

Parameters

FileName
String

Required String. The file name of the specified document.

EditNow
Boolean

Required Boolean. True to have the specified document open immediately in its associated editing environment. The default value is True.

Overwrite
Boolean

Required Boolean. True to overwrite any existing file of the same name in the same folder. False if any existing file of the same name is preserved and the FileName argument specifies a new file name. The default value is False.

Applies to