Пример #1
0
        public virtual object Clone()
        {
            var element = new BaseCompendiumPageElement
            {
                Name        = Name.Clone() as string,
                ElementType = ElementType.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z
            };

            return(element);
        }
Пример #2
0
        public override object Clone()
        {
            var image = new AlphaAreaElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                Width       = Width,
                Height      = Height
            };

            return(image);
        }
Пример #3
0
        public override object Clone()
        {
            var item = new ItemElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                ItemId      = ItemId,
                Hue         = Hue
            };

            return(item);
        }
Пример #4
0
        public override object Clone()
        {
            var label = new LabelElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                Text        = (string)Text.Clone(),
                Hue         = Hue
            };

            return(label);
        }
Пример #5
0
        public override object Clone()
        {
            var link = new ButtonElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                GumpLink    = (string)GumpLink.Clone(),
                NormalId    = NormalId,
                PressedId   = PressedId
            };

            return(link);
        }
Пример #6
0
        public override object Clone()
        {
            var image = new BackgroundElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                GumpId      = GumpId,
                Width       = Width,
                Height      = Height
            };

            return(image);
        }
Пример #7
0
        public override object Clone()
        {
            var image = new ImageElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                GumpId      = GumpId,
                Hue         = Hue
            };


            return(image);
        }
Пример #8
0
        public override object Clone()
        {
            var html = new HtmlElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                Text        = (string)Text.Clone(),
                Width       = Width,
                Height      = Height,
                Scrollbar   = Scrollbar,
                Background  = Background
            };

            return(html);
        }
Пример #9
0
        public override object Clone()
        {
            var link = new HyperLinkElement
            {
                ElementType = ElementType.Clone() as string,
                Name        = Name.Clone() as string,
                X           = X,
                Y           = Y,
                Z           = Z,
                GumpLink    = (string)GumpLink.Clone(),
                WebColor    = (string)WebColor.Clone(),
                Text        = (string)Text.Clone(),
                Underlined  = Underlined,
                Italicized  = Italicized,
                Bold        = Bold,
                FontSize    = FontSize
            };

            return(link);
        }