Share via


Shading.ForegroundPatternColorIndex Property 

Returns or sets the color that's applied to the foreground of the Shading object. This color is applied to the dots and lines in the shading pattern.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim shading1 As Shading

Dim returnValue As WdColorIndex
returnValue = shading1.ForegroundPatternColorIndex

Dim sampleValue As WdColorIndex
shading1.ForegroundPatternColorIndex = sampleValue

Syntax

Property ForegroundPatternColorIndex() As WdColorIndex
WdColorIndex ForegroundPatternColorIndex {get; set;}
property WdColorIndex^ ForegroundPatternColorIndex{
    WdColorIndex^ get();
    Void set(WdColorIndex^);
}
public WdColorIndex get_ForegroundPatternColorIndex();
public void set_ForegroundPatternColorIndex(WdColorIndex);
function get ForegroundPatternColorIndex() : WdColorIndex;
function set ForegroundPatternColorIndex(WdColorIndex);

Remarks

WdColorIndex can be one of these WdColorIndex constants.

wdAuto

wdBlack

wdBlue

wdBrightGreen

wdByAuthor

wdDarkBlue

wdDarkRed

wdDarkYellow

wdGray25

wdGray50

wdGreen

wdNoHighlight

wdPink

wdRed

wdTeal

wdTurquoise

wdViolet

wdWhite

wdYellow

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Shading Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Shading Members