private void SetAllNull() { bUseNoLine = false; bUseSolidLine = false; SolidColor = new SLColorTransform(listThemeColors); bUseGradientLine = false; GradientColor = new SLGradientFill(listThemeColors); decWidth = 0m; HasWidth = false; vCompoundLineType = A.CompoundLineValues.Single; HasCompoundLineType = false; vDashType = A.PresetLineDashValues.Solid; HasDashType = false; vCapType = A.LineCapValues.Square; HasCapType = false; vJoinType = SLLineJoinValues.Round; HasJoinType = false; HeadEndType = null; HeadEndSize = SLLineSizeValues.Size1; TailEndType = null; TailEndSize = SLLineSizeValues.Size1; Alignment = null; }
internal SLColorTransform Clone() { var clr = new SLColorTransform(listThemeColors); clr.IsRgbColorModelHex = IsRgbColorModelHex; clr.DisplayColor = DisplayColor; clr.RgbColor = RgbColor; clr.SchemeColor = SchemeColor; clr.decTint = decTint; clr.decTransparency = decTransparency; return(clr); }
internal SLGradientStop(List <Color> ThemeColors, string HexColor, decimal Position) { Color = new SLColorTransform(ThemeColors); this.Position = Position; var clr = new Color(); try { clr = System.Drawing.Color.FromArgb(int.Parse(HexColor, NumberStyles.HexNumber)); } catch { clr = System.Drawing.Color.White; } Color.SetColor(clr, 0); }
private void SetAllNull() { IsInnerShadow = null; InnerShadowColor = new SLColorTransform(listThemeColors); InnerShadowBlurRadius = 0; InnerShadowDistance = 0; InnerShadowDirection = 0; OuterShadowColor = new SLColorTransform(listThemeColors); OuterShadowBlurRadius = 0; OuterShadowDistance = 0; OuterShadowDirection = 0; OuterShadowHorizontalRatio = 100; OuterShadowVerticalRatio = 100; OuterShadowHorizontalSkew = 0; OuterShadowVerticalSkew = 0; OuterShadowAlignment = A.RectangleAlignmentValues.Bottom; OuterShadowRotateWithShape = true; }
private void SetAllNull() { Type = SLFillType.Automatic; SolidColor = new SLColorTransform(listThemeColors); GradientColor = new SLGradientFill(listThemeColors); BlipFileName = string.Empty; BlipRelationshipID = string.Empty; BlipTile = true; BlipLeftOffset = 0; BlipRightOffset = 0; BlipTopOffset = 0; BlipBottomOffset = 0; BlipOffsetX = 0; BlipOffsetY = 0; BlipScaleX = 100; BlipScaleY = 100; BlipAlignment = A.RectangleAlignmentValues.TopLeft; BlipMirrorType = A.TileFlipValues.None; BlipTransparency = 0; BlipDpi = null; BlipRotateWithShape = null; PatternForegroundColor = new SLColorTransform(listThemeColors); PatternBackgroundColor = new SLColorTransform(listThemeColors); }
internal SLGlow(List <Color> ThemeColors) { HasGlow = false; decRadius = 0; GlowColor = new SLColorTransform(ThemeColors); }
/// <summary> /// Remove any contour settings. /// </summary> public void SetNoContour() { clrContourColor = new SLColorTransform(listThemeColors); HasContourColor = false; decContourWidth = 0; }
/// <summary> /// Remove any extrusion (or depth) settings. /// </summary> public void SetNoExtrusion() { clrExtrusionColor = new SLColorTransform(listThemeColors); HasExtrusionColor = false; decExtrusionHeight = 0; }
internal SLGradientStop(List <Color> ThemeColors) { Color = new SLColorTransform(ThemeColors); Position = 0m; }