Example #1
0
        internal SLFormat3D Clone()
        {
            var format = new SLFormat3D(listThemeColors);

            format.HasBevelTop          = HasBevelTop;
            format.vBevelTopPreset      = vBevelTopPreset;
            format.decBevelTopWidth     = decBevelTopWidth;
            format.decBevelTopHeight    = decBevelTopHeight;
            format.HasBevelBottom       = HasBevelBottom;
            format.vBevelBottomPreset   = vBevelBottomPreset;
            format.decBevelBottomWidth  = decBevelBottomWidth;
            format.decBevelBottomHeight = decBevelBottomHeight;
            format.HasExtrusionColor    = HasExtrusionColor;
            format.clrExtrusionColor    = clrExtrusionColor.Clone();
            format.decExtrusionHeight   = decExtrusionHeight;
            format.HasContourColor      = HasContourColor;
            format.clrContourColor      = clrContourColor.Clone();
            format.decContourWidth      = decContourWidth;
            format.Material             = Material;
            format.bHasLighting         = bHasLighting;
            format.vLighting            = vLighting;
            format.decAngle             = decAngle;

            return(format);
        }
        private void SetAllNull()
        {
            vBlackWhiteMode   = A.BlackWhiteModeValues.Auto;
            HasBlackWhiteMode = false;

            Transform2D       = new SLTransform2D();
            HasTransform2D    = false;
            vPresetGeometry   = A.ShapeTypeValues.Rectangle;
            HasPresetGeometry = false;

            Fill       = new SLFill(listThemeColors);
            Outline    = new SLLinePropertiesType(listThemeColors);
            EffectList = new SLEffectList(listThemeColors);

            Rotation3D = new SLRotation3D();
            Format3D   = new SLFormat3D(listThemeColors);
        }