GrapeCity.Win.MultiRow Namespace > RichTextBoxCell Class > LoadFile Method : LoadFile(Stream,RichTextBoxStreamType) Method |
Public Overloads Sub LoadFile( _ ByVal data As Stream, _ ByVal fileType As RichTextBoxStreamType _ )
Dim instance As RichTextBoxCell Dim data As Stream Dim fileType As RichTextBoxStreamType instance.LoadFile(data, fileType)
public void LoadFile( Stream data, RichTextBoxStreamType fileType )
Exception | Description |
---|---|
System.ArgumentException | The file being loaded is not an RTF document. |
System.IO.IOException | An error occurred while loading the file into the control. |
The method opens and loads the file directly whether or not the handle of GcMultiRow is created.
Refer to the System.Windows.Forms.RichTextBox control's remarks for details in MSDN.
Target Platforms: Windows 7, 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