Version

Load(String) Method

Initializes the document with text from the specified file.
Syntax
'Declaration
 
Public Overloads Function Load( _
   ByVal fileName As String _
) As Boolean
public bool Load( 
   string fileName
)

Parameters

fileName
The name of the file to load.

Return Value

True if the operation was successful, otherwise false.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionif filename is null or empty.
Remarks

Note: this is equivalent to calling the InitializeText method.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also