[]
        
(Showing Draft Content)

C1.Win.Document.Util.C1RichText.GetRtfMetafileBytes

GetRtfMetafileBytes Method

GetRtfMetafileBytes(Graphics, string, int, int, Rect, bool)

Draws specified RTF text into metafile and returns metafile's data, bounds should be specified in twips.

Declaration
public static byte[] GetRtfMetafileBytes(Graphics measurmentGraphics, string rtf, int firstCharIndex, int length, Rect bounds, bool detectUrls)
Public Shared Function GetRtfMetafileBytes(measurmentGraphics As Graphics, rtf As String, firstCharIndex As Integer, length As Integer, bounds As Rect, detectUrls As Boolean) As Byte()
Parameters
Type Name Description
Graphics measurmentGraphics
string rtf

The RTF text.

int firstCharIndex

The index of first character.

int length

The total number of characters.

Rect bounds

The rectangle bounds.

bool detectUrls

A value indicating whether or not the C1RichText will automatically format a Uniform Resource Locator (URL).

Returns
Type Description
byte[]