GrapeCity MultiRow Windows Forms Documentation
LoadFile(Stream,RichTextBoxStreamType) Method


A stream of data to load into the RichTextBoxCell.
One of the System.Windows.Forms.RichTextBoxStreamType values.
Loads the contents of an existing data stream into the RichTextBoxCell.
Syntax
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
)

Parameters

data
A stream of data to load into the RichTextBoxCell.
fileType
One of the System.Windows.Forms.RichTextBoxStreamType values.
Exceptions
ExceptionDescription
System.ArgumentException The file being loaded is not an RTF document.
System.IO.IOException An error occurred while loading the file into the control.
Remarks

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.

Requirements

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

See Also

Reference

RichTextBoxCell Class
RichTextBoxCell Members
Overload List
LoadFile(String) Method
LoadFile(String,RichTextBoxStreamType) Method

 

 


Copyright © GrapeCity, inc. All rights reserved.