Ejemplo n.º 1
0
        public override object Clone()
        {
            LabelElement label = new LabelElement();

            label.ElementType = this.ElementType.Clone() as string;
            label.Name = this.Name.Clone() as string;
            label.X = this.X;
            label.Y = this.Y;
            label.Z = this.Z;
            label.Text = (string)this.Text.Clone();
            label.Hue = this.Hue;

            return label;
        }
Ejemplo n.º 2
0
        //factory method
        public static BaseCompendiumPageElement CreateLabelElement(XElement elementXml)
        {
            LabelElement elementToReturn = new LabelElement();

            try
            {
                elementToReturn.Deserialize(elementXml);
            }
            catch
            {
                elementToReturn = null;
            }

            return elementToReturn;
        }
Ejemplo n.º 3
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;
		}
Ejemplo n.º 4
0
 public static BaseCompendiumPageElement CreateInstance()
 {
     LabelElement label = new LabelElement();
     label.Text = "";
     label.X = 0;
     label.Y = 0;
     label.Hue = 0;
     label.Name = "new Label";
     label.ElementType = "LabelElement";
     return label;
 }
Ejemplo n.º 5
0
		public static BaseCompendiumPageElement CreateInstance()
		{
			var label = new LabelElement
			{
				Text = "",
				X = 0,
				Y = 0,
				Hue = 0,
				Name = "new Label",
				ElementType = "LabelElement"
			};
			return label;
		}