Пример #1
0
        // 复制到ClassShading同名参数值
        public void copy2(ref ClassShading oShd)
        {
            oShd.BackgroundPatternColor      = this.BackgroundPatternColor;      // 复制到ClassShading同名参数值
            oShd.BackgroundPatternColorIndex = this.BackgroundPatternColorIndex; // 复制到ClassShading同名参数值
            //oShd.Creator = this.Creator;

            oShd.ForegroundPatternColor      = this.ForegroundPatternColor;      // 复制到ClassShading同名参数值
            oShd.ForegroundPatternColorIndex = this.ForegroundPatternColorIndex; // 复制到ClassShading同名参数值

            oShd.Texture = this.Texture;                                         // 复制到ClassShading同名参数值

            return;
        }
Пример #2
0
        //////////////////////////////////////////
        // 复制ClassShading同名参数值
        public void clone(ClassShading shd)
        {
            this.BackgroundPatternColor      = shd.BackgroundPatternColor;      // 复制ClassShading同名参数值
            this.BackgroundPatternColorIndex = shd.BackgroundPatternColorIndex; // 复制ClassShading同名参数值
            //this.Creator = shd.Creator;// 复制ClassShading同名参数值

            this.ForegroundPatternColor      = shd.ForegroundPatternColor;      // 复制ClassShading同名参数值
            this.ForegroundPatternColorIndex = shd.ForegroundPatternColorIndex; // 复制ClassShading同名参数值

            this.Texture = shd.Texture;                                         // 复制ClassShading同名参数值

            return;
        }