TextFontStyleUnderline: Boolean;
The TextFontStyleUnderline property determines whether to use underline font. If the value is True, underlined font is used, if the value is False, it is not used.
The default property value is False.
Executing the example requires an existing ws object of the IWxWorkspace type.
Sub UserProc;
Var
ws: IWxWorkspace;
Shape: IWxShape;
Style: IWxStyle;
Begin
ws.BeginUpdate;
Shape := ws.Shapes.Item(1);
Shape.Text := "Text";
Style := Shape.Style;
Style.TextFontSize := 12;
Style.TextFontBrushColor := GxColor.FromName("Red");
Style.TextFontStyleUnderline := True;
ws.EndUpdate;
End Sub UserProc;
After executing the example the object contains text of the defined color, size and underlined font.
See also: