Partager via


Borders.InsideColor Property (Word)

Returns or sets the 24-bit color of the inside borders. Read/write.

Syntax

expression .InsideColor

expression Required. A variable that represents a Borders collection.

Remarks

This property can be any valid WdColor constant or a value returned by Visual Basic's RGB function. If the InsideLineStyle property is set to either wdLineStyleNone or False, setting this property has no effect.

Example

This example adds dark red borders between the first four paragraphs in the active document.

Set myDoc = ActiveDocument 
Set myRange = myDoc.Range(Start:=myDoc.Paragraphs(1).Range.Start, _ 
 End:=myDoc.Paragraphs(4).Range.End) 
With myRange.Borders 
 .InsideLineStyle = wdLineStyleSingle 
 .InsideLineWidth = wdLineWidth150pt 
 .InsideColor = wdDarkRed 
End With

See Also

Concepts

Borders Collection Object

Borders Object Members