Skip to main content

CharacterPropertiesBase.KerningThreshold Property

Gets or sets the minimum font size for which the kerning is adjusted automatically.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v24.1.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

float? KerningThreshold { get; set; }

Property Value

Type Description
Nullable<Single>

The target font size (from 0 to 3276) or null (Nothing in Visual Basic) for a mixture of values.

Remarks

Set the KerningThreshold property to 0 to disable automatic kerning.

The code sample below shows how to enable kerning for 28 font size and above:

Document document = wordProcessor.Document;
var testParagraph = document.Paragraphs[2];
var cP = document.BeginUpdateCharacters(testParagraph.Range);
cP.KerningThreshold = 28;
document.EndUpdateCharacters(cP);

Note

The KerningThreshold property is ignored when a document is displayed in the RichEditControl. However, you can set this property in code and save its value to a file for further processing in Microsoft Word or other word processing applications.

See Also