Measures and paints formatted text blocks for the HTML-capable text renderer.
Definition
Namespace:Telerik.WinControls.Primitives
Assembly:Telerik.WinControls.dll
Syntax:
public class TextPrimitiveHtmlImpl : ITextPrimitive
Inheritance: objectTextPrimitiveHtmlImpl
Implements:
Constructors
Creates the renderer with its formatted text block marked for parsing.
public TextPrimitiveHtmlImpl()
Fields
Properties
Gets or sets the formatted text block used for HTML measurement, painting, and pointer interaction.
public FormattedTextBlock TextBlock { get; set; }
Methods
Measures text using the supplied proposed size as a constraint.
public SizeF GetTextSize(SizeF proposedSize, TextParams textParams)
The size available for measuring the text.
textParamsTextParamsThe text content and settings that affect measurement.
Returns:The measured size of the text.
Implements:
Measures the text without a caller-specified size constraint.
public SizeF GetTextSize(TextParams textParams)
The text content and settings that affect measurement.
Returns:The measured size of the text.
Implements:
This overload is not implemented by the HTML renderer.
public SizeF MeasureOverride(SizeF availableSize, TextParams textParams, ITextElement element)
The size available to the text.
textParamsTextParamsThe text settings.
elementITextElementThe text element.
Returns:This method does not return; it always throws.
Exceptions: NotImplementedExceptionAlways thrown.
Measures the desired text size within the available layout size.
public SizeF MeasureOverride(SizeF availableSize, TextParams textParams)
The maximum size available to the text.
textParamsTextParamsThe text content and settings that affect measurement.
Returns:The desired size of the rendered text.
Implements:
Forwards pointer movement to the formatted text block and calls its mouse-up handler once while the left button is held.
public void OnMouseMove(object sender, MouseEventArgs e)
The object associated with the pointer event.
eMouseEventArgsThe mouse-event data.
Implements:
Paints text using the supplied graphics context and parameters. The built-in backends do not apply the supplied angle and scale.
public void PaintPrimitive(IGraphics graphics, float angle, SizeF scale, TextParams textParams)
The graphics context used to draw the text.
anglefloatThe rotation angle supplied for the paint operation.
scaleSizeFThe scale supplied for the paint operation.
textParamsTextParamsThe text content, layout, and rendering settings.
Implements:
Paints text using the supplied text parameters without an explicit transform.
public void PaintPrimitive(IGraphics graphics, TextParams textParams)
The graphics context used to draw the text.
textParamsTextParamsThe text content, layout, and rendering settings.
Implements: