예제 #1
0
        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;
        }
예제 #2
0
        internal SLGradientFill Clone()
        {
            var gf = new SLGradientFill(listThemeColors);

            gf.IsLinear           = IsLinear;
            gf.decAngle           = decAngle;
            gf.PathType           = PathType;
            gf.Direction          = Direction;
            gf.HasFlip            = HasFlip;
            gf.vFlip              = vFlip;
            gf.HasRotateWithShape = HasRotateWithShape;
            gf.bRotateWithShape   = bRotateWithShape;
            for (var i = 0; i < GradientStops.Count; ++i)
            {
                gf.GradientStops.Add(GradientStops[i].Clone());
            }

            return(gf);
        }
예제 #3
0
 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);
 }