Ejemplo n.º 1
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="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);
 }
Ejemplo n.º 2
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);
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
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);
 }
Ejemplo n.º 5
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);
 }
Ejemplo n.º 6
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;
 }
Ejemplo n.º 7
0
 /// <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;
 }
Ejemplo n.º 8
0
 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);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Set no fill.
 /// </summary>
 public void SetNoFill()
 {
     this.Type = SLFillType.NoFill;
 }
Ejemplo n.º 10
0
 /// <summary>
 /// Set the fill to automatic.
 /// </summary>
 public void SetAutomaticFill()
 {
     this.Type = SLFillType.Automatic;
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Set the fill to automatic.
 /// </summary>
 public void SetAutomaticFill()
 {
     this.Type = SLFillType.Automatic;
 }
Ejemplo n.º 12
0
 /// <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);
 }
Ejemplo n.º 13
0
 /// <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);
 }
Ejemplo n.º 14
0
 /// <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);
 }
Ejemplo n.º 15
0
 internal void SetSolidFill(A.SchemeColorValues FillColor, decimal Tint, decimal Transparency)
 {
     this.Type = SLFillType.SolidFill;
     this.SolidColor.SetColor(FillColor, Tint, Transparency);
 }
Ejemplo n.º 16
0
 /// <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);
 }
Ejemplo n.º 17
0
 /// <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);
 }
Ejemplo n.º 18
0
 /// <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);
 }
Ejemplo n.º 19
0
 /// <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);
 }
Ejemplo n.º 20
0
 /// <summary>
 /// Set no fill.
 /// </summary>
 public void SetNoFill()
 {
     this.Type = SLFillType.NoFill;
 }
Ejemplo n.º 21
0
 /// <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);
 }
Ejemplo n.º 22
0
 internal void SetSolidFill(A.SchemeColorValues FillColor, decimal Tint, decimal Transparency)
 {
     this.Type = SLFillType.SolidFill;
     this.SolidColor.SetColor(FillColor, Tint, Transparency);
 }
Ejemplo n.º 23
0
 /// <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);
 }
Ejemplo n.º 24
0
 /// <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);
 }
Ejemplo n.º 25
0
 /// <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);
 }
Ejemplo n.º 26
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);
 }
Ejemplo n.º 27
0
 /// <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);
 }
Ejemplo n.º 28
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);
 }
Ejemplo n.º 29
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;
 }
Ejemplo n.º 30
0
 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);
 }
Ejemplo n.º 31
0
 /// <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;
 }
Ejemplo n.º 32
0
 /// <summary>
 ///     Set no fill.
 /// </summary>
 public void SetNoFill()
 {
     Type = SLFillType.NoFill;
 }