Skip to end of metadata
Go to start of metadata

Description

Sets or returns the underline color for a character run as a Color object.
C#
public System.Drawing.Color UnderlineColor{ get; set; }
vb.net
Public Property UnderlineColor() As System.Drawing.Color

Remarks

MS Word equivalent: Format menu > Font... > Font tab > Underline color:

Examples

C#
          //--- Return UnderlineTypeColor
          Color oColor = oFont.UnderlineColor;

          //--- Set UnderlineColor
          oFont.UnderlineColor = Color.Blue;
        
vb.net
          '--- Return UnderlineColor
          Dim oColor As Color = oFont.UnderlineColor

          '--- Set UnderlineColor
          oFont.UnderlineColor = Color.Blue
        
  • No labels