private static BlendMode ApplyBackgroundBlendMode(IList <String> backgroundBlendModeArray, int iteration) { String cssValue = null; if (backgroundBlendModeArray != null && !backgroundBlendModeArray.IsEmpty()) { int actualValueIteration = Math.Min(iteration, backgroundBlendModeArray.Count - 1); cssValue = backgroundBlendModeArray[actualValueIteration]; } return(CssUtils.ParseBlendMode(cssValue)); }