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} |
Page History
Overview
Content Tools