Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

#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