Class RichTextPaint
Inheritance
System.Object
RichTextPaint
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Drawing
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class RichTextPaint
Constructors
RichTextPaint()
Declaration
public RichTextPaint()
Methods
DrawRichText(Graphics, String, Boolean, Rectangle, Rectangle, Color, Rectangle, Boolean, Int32)
Declaration
public static void DrawRichText(Graphics g, string rtf, bool printing, Rectangle pageBounds, Rectangle targetBounds, Color backColor, Rectangle clipRect, bool wordWrap, int zoom)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.String | rtf | |
System.Boolean | printing | |
System.Drawing.Rectangle | pageBounds | |
System.Drawing.Rectangle | targetBounds | |
System.Drawing.Color | backColor | |
System.Drawing.Rectangle | clipRect | |
System.Boolean | wordWrap | |
System.Int32 | zoom |
DrawRichText(Graphics, String, Boolean, Rectangle, Rectangle, Color, Rectangle, Boolean, Int32, Boolean)
Declaration
public static void DrawRichText(Graphics g, string rtf, bool printing, Rectangle pageBounds, Rectangle targetBounds, Color backColor, Rectangle clipRect, bool wordWrap, int zoom, bool isRightToLeft)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.String | rtf | |
System.Boolean | printing | |
System.Drawing.Rectangle | pageBounds | |
System.Drawing.Rectangle | targetBounds | |
System.Drawing.Color | backColor | |
System.Drawing.Rectangle | clipRect | |
System.Boolean | wordWrap | |
System.Int32 | zoom | |
System.Boolean | isRightToLeft |
DrawRichText(Graphics, RichTextBox, String, Boolean, Rectangle, Rectangle, Rectangle, Color, Boolean, Int32)
Declaration
public static void DrawRichText(Graphics g, RichTextBox richTextControl, string rtf, bool printing, Rectangle pageBounds, Rectangle targetBounds, Rectangle clipRect, Color backColor, bool wordWrap, int zoom)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Windows.Forms.RichTextBox | richTextControl | |
System.String | rtf | |
System.Boolean | printing | |
System.Drawing.Rectangle | pageBounds | |
System.Drawing.Rectangle | targetBounds | |
System.Drawing.Rectangle | clipRect | |
System.Drawing.Color | backColor | |
System.Boolean | wordWrap | |
System.Int32 | zoom |
DrawRichText(Graphics, RichTextBox, String, Boolean, Rectangle, Rectangle, Rectangle, Color, Boolean, Int32, Boolean)
Declaration
public static void DrawRichText(Graphics g, RichTextBox richTextControl, string rtf, bool printing, Rectangle pageBounds, Rectangle targetBounds, Rectangle clipRect, Color backColor, bool wordWrap, int zoom, bool isRightToLeft)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Windows.Forms.RichTextBox | richTextControl | |
System.String | rtf | |
System.Boolean | printing | |
System.Drawing.Rectangle | pageBounds | |
System.Drawing.Rectangle | targetBounds | |
System.Drawing.Rectangle | clipRect | |
System.Drawing.Color | backColor | |
System.Boolean | wordWrap | |
System.Int32 | zoom | |
System.Boolean | isRightToLeft |
DrawRichTextToByteArray(Graphics, String, Single, Single, Color)
Declaration
public static byte[] DrawRichTextToByteArray(Graphics gphx, string text, float width, float height, Color backcolor)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | gphx | |
System.String | text | |
System.Single | width | |
System.Single | height | |
System.Drawing.Color | backcolor |
Returns
Type |
---|
System.Byte[] |
IsValidRtf(String)
Declaration
public static bool IsValidRtf(string rtf)
Parameters
Type | Name | Description |
---|---|---|
System.String | rtf |
Returns
Type |
---|
System.Boolean |
PaintStatic(Graphics, RichTextBox, Boolean, Rectangle, Rectangle, Rectangle, Color, Int32)
Declaration
public static void PaintStatic(Graphics g, RichTextBox richTextControl, bool printing, Rectangle pageBounds, Rectangle targetBounds, Rectangle clipRect, Color backColor, int zoom)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Windows.Forms.RichTextBox | richTextControl | |
System.Boolean | printing | |
System.Drawing.Rectangle | pageBounds | |
System.Drawing.Rectangle | targetBounds | |
System.Drawing.Rectangle | clipRect | |
System.Drawing.Color | backColor | |
System.Int32 | zoom |