public MetaFont(string family, double size, bool bold = false, bool italic = false, string id = null, string href = null, Xamarin.Forms.Color textColor = default(Xamarin.Forms.Color), Xamarin.Forms.Color backgroundColor = default(Xamarin.Forms.Color), bool underline = false, bool strikethrough = false) : base(family, size, bold, italic) { if (!string.IsNullOrEmpty(id) || !string.IsNullOrEmpty(href)) { Action = new MetaFontAction(id, href); } TextColor = textColor; BackgroundColor = backgroundColor; Underline = underline; Strikethrough = strikethrough; }
public static bool Equals(MetaFontAction a1, MetaFontAction a2) { if (a1?.Id != a2?.Id) { return(false); } if (a1?.Href != a2?.Href) { return(false); } return(true); }