//factory method public static BaseCompendiumPageElement CreateLabelElement(XElement elementXml) { var elementToReturn = new HyperLinkElement(); try { elementToReturn.Deserialize(elementXml); } catch { elementToReturn = null; } return(elementToReturn); }
//factory method public static BaseCompendiumPageElement CreateLabelElement(XElement elementXml) { var elementToReturn = new HyperLinkElement(); try { elementToReturn.Deserialize(elementXml); } catch { elementToReturn = null; } return elementToReturn; }
public override object Clone() { HyperLinkElement link = new HyperLinkElement(); link.ElementType = this.ElementType.Clone() as string; link.Name = this.Name.Clone() as string; link.X = this.X; link.Y = this.Y; link.Z = this.Z; link.GumpLink = (string)this.GumpLink.Clone(); link.WebColor = (string)this.WebColor.Clone(); link.Text = (string)this.Text.Clone(); link.Underlined = this.Underlined; link.Italicized = this.Italicized; link.Bold = this.Bold; link.FontSize = this.FontSize; return link; }
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); }
public override object Clone() { HyperLinkElement link = new HyperLinkElement(); link.ElementType = this.ElementType.Clone() as string; link.Name = this.Name.Clone() as string; link.X = this.X; link.Y = this.Y; link.Z = this.Z; link.GumpLink = (string)this.GumpLink.Clone(); link.WebColor = (string)this.WebColor.Clone(); link.Text = (string)this.Text.Clone(); link.Underlined = this.Underlined; link.Italicized = this.Italicized; link.Bold = this.Bold; link.FontSize = this.FontSize; return(link); }
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; }
public static BaseCompendiumPageElement CreateInstance() { HyperLinkElement link = new HyperLinkElement(); link.Text = ""; link.X = 0; link.Y = 0; link.Name = "new GumpLink"; link.ElementType = "HyperLinkElement"; link.GumpLink = ""; link.Text = "Link"; link.WebColor = "#FFFFFF"; link.Underlined = false; link.Bold = false; link.Italicized = false; link.FontSize = FontHandling.FontSize.Medium; return(link); }
public static BaseCompendiumPageElement CreateInstance() { var link = new HyperLinkElement { Text = "", X = 0, Y = 0, Name = "new GumpLink", ElementType = "HyperLinkElement", GumpLink = "" }; link.Text = "Link"; link.WebColor = "#FFFFFF"; link.Underlined = false; link.Bold = false; link.Italicized = false; link.FontSize = FontHandling.FontSize.Medium; return link; }