Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

...

Wiki Markup
{description}
{excerpt}Sets or returns the color of the text in a character run as a {msdn:System.Drawing.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}
Signature
C#C#
|Color} object.{excerpt}
{signature:C#}
 public System.Drawing.Color TextColor{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property TextColor() As System.Drawing.Color
Remarks
MS Word
{signature}
{remarks}MS Word equivalent: Format menu > Font... > Font tab > Font color:
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle