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}{signature:
}
Signature
vb.net
vb.net
Public Property TextColor() As System.Drawing.Color
{signature}
{remarks}MS Word 
Remarks

MS Word equivalent:

Format

menu

>

Font...

>

Font

tab

>

Font

color:

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

Example
Code Block
csharp
csharp
titleC#


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

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


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

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