Style.SetPatternColor

Style.SetPatternColor method

Sets the background color.

public void SetPatternColor(BackgroundType pattern, Color color1, Color color2)
ParameterTypeDescription
patternBackgroundTypeThe pattern.
color1ColorThe foreground color.
color2ColorThe background color. Only works when pattern is not BackgroundType.None and BackgroundType.Solid.

See Also