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
Description

Excerpt

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

Msdn
System.Drawing.Color
System.Drawing.Color
1Color
object.

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

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

Example
Code Block
csharp
csharp
titleC#

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

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

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

          '--- Set TextColor
          oFont.TextColor = Color.Red