Skip to end of metadata
Go to start of metadata

Description

Sets or returns a Color object that represents the foreground color. This is the alternate color that is used with patterns.
C#
public System.Drawing.Color ForegroundColor{ get; set; }
vb.net
Public Property ForegroundColor() As System.Drawing.Color

Remarks

MS Word equivalent: Format menu > Borders and Shading... > Shading tab > Patterns section > Color:

Examples

C#
          //--- Return ForegroundColor
          Color clr = shad.ForegroundColor;

          //--- Set ForegroundColor
          shad.ForegroundColor = Color.Yellow;
        
vb.net
          '--- Return ForegroundColor
          Dim clr As Color = shad.ForegroundColor

          '--- Set ForegroundColor
          shad.ForegroundColor = Color.Yellow
        
  • No labels