Skip to end of metadata
Go to start of metadata

Description

Sets or returns the color of the text in a character run as a Color object.

C#
 public System.Drawing.Color TextColor{ get; set; }
vb.net
Public Property TextColor() As System.Drawing.Color

Remarks

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

Examples

C#

          //--- Return TextColor
          Color oColor = oFont.TextColor;

          //--- Set TextColor
          oFont.TextColor = Color.Red;
        
vb.net

          '--- Return TextColor
          Dim oColor As Color = oFont.TextColor

          '--- Set TextColor
          oFont.TextColor = Color.Red
        
  • No labels