Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{description}
{excerpt}Sets or returns the color of the text in a character run as a {msdn:System.Drawing.Color|Color} object.{excerpt}
{signature:C#}
 public System.Drawing.Color TextColor{ get; set; }
{signature}{signature:vb.net}
Public Property TextColor() As System.Drawing.Color
{signature}
{remarks}MS Word equivalent: Format menu > Font... > Font tab > Font color:

{remarks}
{example}{code:csharp|title=C#}

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

          //--- Set TextColor
          oFont.TextColor = Color.Red;
        {code}
{code:vb.net|title=vb.net}

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

          '--- Set TextColor
          oFont.TextColor = Color.Red
        {code}

{example}