/// <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="BackgroundColor">The color to be used for the background.</param> public void SetPatternFill(A.PresetPatternValues PresetPattern, SLThemeColorIndexValues ForegroundColorTheme, System.Drawing.Color BackgroundColor) { this.Type = SLFillType.PatternFill; this.PatternPreset = PresetPattern; this.PatternForegroundColor.SetColor(ForegroundColorTheme, 0, 0); this.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) { this.Type = SLFillType.PatternFill; this.PatternPreset = PresetPattern; this.PatternForegroundColor.SetColor(ForegroundColorTheme, ForegroundColorTint, 0); this.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="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="BackgroundColor">The color to be used for the background.</param> public void SetPatternFill(A.PresetPatternValues PresetPattern, SLThemeColorIndexValues ForegroundColorTheme, double ForegroundColorTint, Color BackgroundColor) { Type = SLFillType.PatternFill; PatternPreset = PresetPattern; PatternForegroundColor.SetColor(ForegroundColorTheme, ForegroundColorTint, 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="BackgroundColorTheme">The theme color to be used for the background.</param> public void SetPatternFill(A.PresetPatternValues PresetPattern, SLThemeColorIndexValues ForegroundColorTheme, SLThemeColorIndexValues BackgroundColorTheme) { Type = SLFillType.PatternFill; PatternPreset = PresetPattern; PatternForegroundColor.SetColor(ForegroundColorTheme, 0, 0); PatternBackgroundColor.SetColor(BackgroundColorTheme, 0, 0); }
/// <summary> /// Set a picture fill. This stretches the picture. /// </summary> /// <param name="PictureFileName">The file name of the image/picture used.</param> /// <param name="LeftOffset">The left offset in percentage. A suggested range is -100% to 100%. Accurate to 1/1000 of a percent.</param> /// <param name="RightOffset">The right offset in percentage. A suggested range is -100% to 100%. Accurate to 1/1000 of a percent.</param> /// <param name="TopOffset">The top offset in percentage. A suggested range is -100% to 100%. Accurate to 1/1000 of a percent.</param> /// <param name="BottomOffset">The bottom offset in percentage. A suggested range is -100% to 100%. Accurate to 1/1000 of a percent.</param> /// <param name="Transparency">Transparency of the picture ranging from 0% to 100%. Accurate to 1/1000 of a percent.</param> public void SetPictureFill(string PictureFileName, decimal LeftOffset, decimal RightOffset, decimal TopOffset, decimal BottomOffset, decimal Transparency) { this.Type = SLFillType.BlipFill; this.BlipTile = false; this.BlipFileName = PictureFileName; this.BlipLeftOffset = LeftOffset; this.BlipRightOffset = RightOffset; this.BlipTopOffset = TopOffset; this.BlipBottomOffset = BottomOffset; this.BlipTransparency = Transparency; }
/// <summary> /// Set a picture fill. This tiles the picture. /// </summary> /// <param name="PictureFileName">The file name of the image/picture used.</param> /// <param name="OffsetX">Horizontal offset ranging from -2147483648 pt to 2147483647 pt. However a suggested range is -1585pt to 1584pt. Accurate to 1/12700 of a point.</param> /// <param name="OffsetY">Vertical offset ranging from -2147483648 pt to 2147483647 pt. However a suggested range is -1585pt to 1584pt. Accurate to 1/12700 of a point.</param> /// <param name="ScaleX">Horizontal scale in percentage. A suggested range is 0% to 100%.</param> /// <param name="ScaleY">Vertical scale in percentage. A suggested range is 0% to 100%.</param> /// <param name="Alignment">Picture alignment.</param> /// <param name="MirrorType">Picture mirror type.</param> /// <param name="Transparency">Transparency of the picture ranging from 0% to 100%. Accurate to 1/1000 of a percent.</param> public void SetPictureFill(string PictureFileName, decimal OffsetX, decimal OffsetY, decimal ScaleX, decimal ScaleY, A.RectangleAlignmentValues Alignment, A.TileFlipValues MirrorType, decimal Transparency) { this.Type = SLFillType.BlipFill; this.BlipTile = true; this.BlipFileName = PictureFileName; this.BlipOffsetX = OffsetX; this.BlipOffsetY = OffsetY; this.BlipScaleX = ScaleX; this.BlipScaleY = ScaleY; this.BlipAlignment = Alignment; this.BlipMirrorType = MirrorType; this.BlipTransparency = Transparency; }
private void SetAllNull() { this.Type = SLFillType.Automatic; this.SolidColor = new SLColorTransform(this.listThemeColors); this.GradientColor = new SLGradientFill(this.listThemeColors, this.ThrowExceptionsIfAny); this.BlipFileName = string.Empty; this.BlipRelationshipID = string.Empty; this.BlipTile = true; this.BlipLeftOffset = 0; this.BlipRightOffset = 0; this.BlipTopOffset = 0; this.BlipBottomOffset = 0; this.BlipOffsetX = 0; this.BlipOffsetY = 0; this.BlipScaleX = 100; this.BlipScaleY = 100; this.BlipAlignment = A.RectangleAlignmentValues.TopLeft; this.BlipMirrorType = A.TileFlipValues.None; this.BlipTransparency = 0; this.BlipDpi = null; this.BlipRotateWithShape = null; this.PatternForegroundColor = new SLColorTransform(this.listThemeColors); this.PatternBackgroundColor = new SLColorTransform(this.listThemeColors); }
/// <summary> /// Set no fill. /// </summary> public void SetNoFill() { this.Type = SLFillType.NoFill; }
/// <summary> /// Set the fill to automatic. /// </summary> public void SetAutomaticFill() { this.Type = SLFillType.Automatic; }
/// <summary> /// Set a rectangular gradient given a preset setting. /// </summary> /// <param name="Preset">The preset to be used.</param> /// <param name="Direction">The rectangular gradient direction.</param> public void SetRectangularGradient(SLGradientPresetValues Preset, SLGradientDirectionValues Direction) { this.Type = SLFillType.GradientFill; this.GradientColor.SetRectangularGradient(Preset, Direction); }
/// <summary> /// Set a radial gradient given a preset setting. /// </summary> /// <param name="Preset">The preset to be used.</param> /// <param name="Direction">The radial gradient direction.</param> public void SetRadialGradient(SLGradientPresetValues Preset, SLGradientDirectionValues Direction) { Type = SLFillType.GradientFill; GradientColor.SetRadialGradient(Preset, Direction); }
/// <summary> /// Set a path gradient given a preset setting. /// </summary> /// <param name="Preset">The preset to be used.</param> public void SetPathGradient(SLGradientPresetValues Preset) { this.Type = SLFillType.GradientFill; this.GradientColor.SetPathGradient(Preset); }
internal void SetSolidFill(A.SchemeColorValues FillColor, decimal Tint, decimal Transparency) { this.Type = SLFillType.SolidFill; this.SolidColor.SetColor(FillColor, Tint, Transparency); }
/// <summary> /// Set a linear gradient given a preset setting. /// </summary> /// <param name="Preset">The preset to be used.</param> /// <param name="Angle">The interpolation angle ranging from 0 degrees to 359.9 degrees. 0 degrees mean from left to right, 90 degrees mean from top to bottom, 180 degrees mean from right to left and 270 degrees mean from bottom to top. Accurate to 1/60000 of a degree.</param> public void SetLinearGradient(SLGradientPresetValues Preset, decimal Angle) { this.Type = SLFillType.GradientFill; this.GradientColor.SetLinearGradient(Preset, Angle); }
/// <summary> /// Set a solid fill. /// </summary> /// <param name="FillColor">The theme color used.</param> /// <param name="Tint">The tint applied to the 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="Transparency">Transparency of the color ranging from 0% to 100%. Accurate to 1/1000 of a percent.</param> public void SetSolidFill(SLThemeColorIndexValues FillColor, double Tint, decimal Transparency) { this.Type = SLFillType.SolidFill; this.SolidColor.SetColor(FillColor, Tint, Transparency); }
/// <summary> /// Set a solid fill. /// </summary> /// <param name="FillColor">The color used.</param> /// <param name="Transparency">Transparency of the color ranging from 0% to 100%. Accurate to 1/1000 of a percent.</param> public void SetSolidFill(System.Drawing.Color FillColor, decimal Transparency) { this.Type = SLFillType.SolidFill; this.SolidColor.SetColor(FillColor, Transparency); }
/// <summary> /// Set a solid fill. /// </summary> /// <param name="FillColor">The color used.</param> /// <param name="Transparency">Transparency of the color ranging from 0% to 100%. Accurate to 1/1000 of a percent.</param> public void SetSolidFill(Color FillColor, decimal Transparency) { Type = SLFillType.SolidFill; SolidColor.SetColor(FillColor, Transparency); }
private void SetAllNull() { this.Type = SLFillType.Automatic; this.SolidColor = new SLColorTransform(this.listThemeColors); this.GradientColor = new SLGradientFill(this.listThemeColors); this.BlipFileName = string.Empty; this.BlipRelationshipID = string.Empty; this.BlipTile = true; this.BlipLeftOffset = 0; this.BlipRightOffset = 0; this.BlipTopOffset = 0; this.BlipBottomOffset = 0; this.BlipOffsetX = 0; this.BlipOffsetY = 0; this.BlipScaleX = 100; this.BlipScaleY = 100; this.BlipAlignment = A.RectangleAlignmentValues.TopLeft; this.BlipMirrorType = A.TileFlipValues.None; this.BlipTransparency = 0; this.BlipDpi = null; this.BlipRotateWithShape = null; this.PatternForegroundColor = new SLColorTransform(this.listThemeColors); this.PatternBackgroundColor = new SLColorTransform(this.listThemeColors); }
/// <summary> /// Set no fill. /// </summary> public void SetNoFill() { Type = SLFillType.NoFill; }