/// <summary> /// Set a pattern fill with a preset pattern, foreground color and background color. /// </summary> /// <param name="PresetPattern">A preset fill pattern.</param> /// <param name="ForegroundColor">The color to be used for the foreground.</param> /// <param name="BackgroundColor">The color to be used for the background.</param> public void SetPatternFill(A.PresetPatternValues PresetPattern, Color ForegroundColor, Color BackgroundColor) { Type = SLFillType.PatternFill; PatternPreset = PresetPattern; PatternForegroundColor.SetColor(ForegroundColor, 0); PatternBackgroundColor.SetColor(BackgroundColor, 0); }
/// <summary> /// Set a pattern fill with a preset pattern, foreground color and background color. /// </summary> /// <param name="PresetPattern">A preset fill pattern.</param> /// <param name="ForegroundColorTheme">The theme color to be used for the foreground.</param> /// <param name="ForegroundColorTint"> /// The tint applied to the foreground theme color, ranging from -1.0 to 1.0. Negative /// tints darken the theme color and positive tints lighten the theme color. /// </param> /// <param name="BackgroundColorTheme">The theme color to be used for the background.</param> /// <param name="BackgroundColorTint"> /// The tint applied to the background theme color, ranging from -1.0 to 1.0. Negative /// tints darken the theme color and positive tints lighten the theme color. /// </param> public void SetPatternFill(A.PresetPatternValues PresetPattern, SLThemeColorIndexValues ForegroundColorTheme, double ForegroundColorTint, SLThemeColorIndexValues BackgroundColorTheme, double BackgroundColorTint) { Type = SLFillType.PatternFill; PatternPreset = PresetPattern; PatternForegroundColor.SetColor(ForegroundColorTheme, ForegroundColorTint, 0); PatternBackgroundColor.SetColor(BackgroundColorTheme, BackgroundColorTint, 0); }
/// <summary> /// Set a pattern fill with a preset pattern, foreground color and background color. /// </summary> /// <param name="PresetPattern">A preset fill pattern.</param> /// <param name="ForegroundColorTheme">The theme color to be used for the foreground.</param> /// <param name="BackgroundColor">The color to be used for the background.</param> public void SetPatternFill(A.PresetPatternValues PresetPattern, SLThemeColorIndexValues ForegroundColorTheme, Color BackgroundColor) { Type = SLFillType.PatternFill; PatternPreset = PresetPattern; PatternForegroundColor.SetColor(ForegroundColorTheme, 0, 0); PatternBackgroundColor.SetColor(BackgroundColor, 0); }