The DevExpress.XtraRichEdit.API.Native.UnderlineType.UnderlineWordsOnly enumeration member specifies an underline that is a single line below all non-space characters. Other characters are not underlined.
The following code snippet underlines words in the first paragraph in red.
C#DevExpress.XtraRichEdit.API.Native.DocumentRange range = richEditControl1.Document.Paragraphs[0].Range;
DevExpress.XtraRichEdit.API.Native.CharacterProperties cp = richEditControl1.Document.BeginUpdateCharacters(range);
cp.Underline = DevExpress.XtraRichEdit.API.Native.UnderlineType.UnderlineWordsOnly;
cp.UnderlineColor = Color.Red;
richEditControl1.Document.EndUpdateCharacters(cp);
Visual BasicDim range As DevExpress.XtraRichEdit.API.Native.DocumentRange = richEditControl1.Document.Paragraphs(0).Range
Dim cp As DevExpress.XtraRichEdit.API.Native.CharacterProperties = richEditControl1.Document.BeginUpdateCharacters(range)
cp.Underline = DevExpress.XtraRichEdit.API.Native.UnderlineType.UnderlineWordsOnly
cp.UnderlineColor = Color.Red
richEditControl1.Document.EndUpdateCharacters(cp)