[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IFillFormat.PatternColor

PatternColor Property

PatternColor

Returns the IColorFormat object that represents the specified pattern color.

Use this property to read or modify the foreground color used by a pattern fill. To apply a pattern fill first, use Patterned(PatternType).

Declaration
IColorFormat PatternColor { get; }
ReadOnly Property PatternColor As IColorFormat
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
IFillFormat fillFormat = shape.Fill;
fillFormat.Patterned(PatternType.LightDownwardDiagonal);
IColorFormat patternColor = fillFormat.PatternColor;
patternColor.RGB = Color.Blue;