UnderlineType Enum
Lists underline styles.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v26.1.Core.dll
Declaration
Members
Related API Members
The following properties accept/return UnderlineType values:
Remarks
Use the CharacterPropertiesBase.Underline property to specify the underline style for characters and the CharacterPropertiesBase.UnderlineColor to specify the color.
Example
Document document = server.Document;
document.BeginUpdate();
document.AppendText("Normal\nFormatted\nNormal");
document.EndUpdate();
DocumentRange range = document.Paragraphs[1].Range;
CharacterProperties cp = document.BeginUpdateCharacters(range);
cp.FontName = "Comic Sans MS";
cp.FontSize = 18;
cp.ForeColor = Color.Blue;
cp.BackColor = Color.Snow;
cp.Underline = UnderlineType.DoubleWave;
cp.UnderlineColor = Color.Red;
document.EndUpdateCharacters(cp);
See Also
