New to Telerik UI for WinForms? Start a free 30-day trial

Creates the text-rendering backend used by a TextPrimitive.

Definition

Namespace:Telerik.WinControls.Primitives

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class TextPrimitiveFactory

Inheritance: objectTextPrimitiveFactory

Constructors

C#
public TextPrimitiveFactory()

Methods

Creates the plain or HTML-capable backend according to whether HTML rendering is enabled.

C#
public static ITextPrimitive CreateTextPrimitiveImp(bool htmlEnabled)
Parameters:htmlEnabledbool

true to use the HTML-capable renderer; otherwise, use the plain text renderer.

Returns:

ITextPrimitive

The renderer selected for the requested text mode.