ITextPrimitive
Defines the rendering, measurement, and pointer-interaction operations used by a text-rendering backend.
Definition
Namespace:Telerik.WinControls.Primitives
Assembly:Telerik.WinControls.dll
Syntax:
public interface ITextPrimitive
Methods
Measures text using the supplied proposed size as a constraint.
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.
Measures the text without a caller-specified size constraint.
SizeF GetTextSize(TextParams textParams)
The text content and settings that affect measurement.
Returns:The measured size of the text.
Measures the desired text size within the available layout size.
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.
Notifies the backend of pointer movement so it can update text-specific interaction state.
void OnMouseMove(object sender, MouseEventArgs e)
The object associated with the pointer event.
eMouseEventArgsThe pointer coordinates and other mouse-event data.
Paints text using the supplied graphics context and parameters. The built-in backends do not apply the supplied angle and scale.
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.
Paints text using the supplied text parameters without an explicit transform.
void PaintPrimitive(IGraphics graphics, TextParams textParams)
The graphics context used to draw the text.
textParamsTextParamsThe text content, layout, and rendering settings.