officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-characterpropertiesbase-cb90f8ef.md
Gets or sets the minimum font size for which the kerning is adjusted automatically.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
float? KerningThreshold { get; set; }
Property KerningThreshold As Single?
| Type | Description |
|---|---|
| Nullable<Single> |
The target font size (from 0 to 3276 ) or null ( Nothing in Visual Basic) for a mixture of values.
|
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);
Dim document As Document = wordProcessor.Document
Dim testParagraph = document.Paragraphs(2)
Dim 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
CharacterPropertiesBase Interface