Class HtmlTextRenderer
Inheritance
System.Object
HtmlTextRenderer
Assembly: FastReport.dll
Syntax
public class HtmlTextRenderer : IDisposable
Constructors
HtmlTextRenderer(HtmlTextRenderer.RendererContext)
Initializes a new instance of the HTML text renderer with a specified rendering context.
Declaration
public HtmlTextRenderer(HtmlTextRenderer.RendererContext context)
Parameters
HtmlTextRenderer(String, IGraphics, FontFamily, Single, FontStyle, Color, Color, RectangleF, Boolean, StringFormat, HorzAlign, VertAlign, ParagraphFormat, Boolean, Single, Single, InlineImageCache, Boolean, Boolean)
Declaration
public HtmlTextRenderer(string text, IGraphics g, FontFamily font, float size, FontStyle style, Color color, Color underlineColor, RectangleF rect, bool underlines, StringFormat format, HorzAlign horzAlign, VertAlign vertAlign, ParagraphFormat paragraphFormat, bool forceJustify, float scale, float fontScale, InlineImageCache cache, bool isPrinting = false, bool isDifferentTabPositions = false)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| FastReport.IGraphics |
g |
|
| System.Drawing.FontFamily |
font |
|
| System.Single |
size |
|
| System.Drawing.FontStyle |
style |
|
| System.Drawing.Color |
color |
|
| System.Drawing.Color |
underlineColor |
|
| System.Drawing.RectangleF |
rect |
|
| System.Boolean |
underlines |
|
| System.Drawing.StringFormat |
format |
|
| HorzAlign |
horzAlign |
|
| VertAlign |
vertAlign |
|
| ParagraphFormat |
paragraphFormat |
|
| System.Boolean |
forceJustify |
|
| System.Single |
scale |
|
| System.Single |
fontScale |
|
| InlineImageCache |
cache |
|
| System.Boolean |
isPrinting |
|
| System.Boolean |
isDifferentTabPositions |
|
Fields
CultureInfo
Declaration
public static readonly CultureInfo CultureInfo
Field Value
| Type |
Description |
| System.Globalization.CultureInfo |
|
Properties
Angle
Gets the angle of rotation.
Declaration
public int Angle { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Backgrounds
Declaration
public IEnumerable<HtmlTextRenderer.RectangleFColor> Backgrounds { get; }
Property Value
DisplayRect
Declaration
public RectangleF DisplayRect { get; }
Property Value
| Type |
Description |
| System.Drawing.RectangleF |
|
FontScale
Declaration
public float FontScale { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
HorzAlign
Declaration
public HorzAlign HorzAlign { get; }
Property Value
ParagraphFormat
Declaration
public ParagraphFormat ParagraphFormat { get; }
Property Value
Paragraphs
Declaration
public IEnumerable<HtmlTextRenderer.Paragraph> Paragraphs { get; }
Property Value
RightToLeft
Declaration
public bool RightToLeft { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Scale
Declaration
public float Scale { get; }
Property Value
| Type |
Description |
| System.Single |
|
Stikeouts
Declaration
public IEnumerable<HtmlTextRenderer.LineFColor> Stikeouts { get; }
Property Value
TabOffset
Declaration
public float TabOffset { get; }
Property Value
| Type |
Description |
| System.Single |
|
TabPositions
Declaration
public float[] TabPositions { get; }
Property Value
| Type |
Description |
| System.Single[] |
|
TabSize
Declaration
public float TabSize { get; }
Property Value
| Type |
Description |
| System.Single |
|
Underlines
Declaration
public IEnumerable<HtmlTextRenderer.LineFColor> Underlines { get; }
Property Value
WidthRatio
Gets the width ratio of the object.
Declaration
public float WidthRatio { get; }
Property Value
| Type |
Description |
| System.Single |
|
WordWrap
Declaration
public bool WordWrap { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
AddUnknownWord(List<HtmlTextRenderer.CharWithIndex>, HtmlTextRenderer.Paragraph, HtmlTextRenderer.StyleDescriptor, Int32, ref HtmlTextRenderer.Line, ref HtmlTextRenderer.Word, ref Single, ref Int32)
Declaration
public void AddUnknownWord(List<HtmlTextRenderer.CharWithIndex> w, HtmlTextRenderer.Paragraph paragraph, HtmlTextRenderer.StyleDescriptor style, int charIndex, ref HtmlTextRenderer.Line line, ref HtmlTextRenderer.Word word, ref float width, ref int tabIndex)
Parameters
CalcHeight()
Declaration
public float CalcHeight()
Returns
| Type |
Description |
| System.Single |
|
CalcHeight(out Int32)
Declaration
public float CalcHeight(out int charsFit)
Parameters
| Type |
Name |
Description |
| System.Int32 |
charsFit |
|
Returns
| Type |
Description |
| System.Single |
|
CalcWidth()
Declaration
Returns
| Type |
Description |
| System.Single |
|
Dispose()
Declaration
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| System.Boolean |
disposing |
|