Esempio n. 1
0
 public void StoreValues(Data data, string path)
 {
     data.SetValue(@"" + path + @"Color", ColorTranslator.ToHtml(Color));
     data.SetValue(@"" + path + @"Enabled", Enabled.ToString());
     data.SetValue(@"" + path + @"FontAsOutline", FontAsOutline.ToString());
     data.SetValue(@"" + path + @"FontName", Data.EscapeString(FontName));
     data.SetValue(@"" + path + @"FontOutlineWidth", FontOutlineWidth.ToString(CultureInfo.InvariantCulture));
     data.SetValue(@"" + path + @"FontSize", FontSize.ToString(CultureInfo.InvariantCulture));
     data.SetValue(@"" + path + @"PostScriptFontName", Data.EscapeString(PostScriptFontName));
     data.SetValue(@"" + path + @"StampText", Data.EscapeString(StampText));
 }
Esempio n. 2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("Color=" + Color.ToString());
            sb.AppendLine("Enabled=" + Enabled.ToString());
            sb.AppendLine("FontAsOutline=" + FontAsOutline.ToString());
            sb.AppendLine("FontName=" + FontName.ToString());
            sb.AppendLine("FontOutlineWidth=" + FontOutlineWidth.ToString());
            sb.AppendLine("FontSize=" + FontSize.ToString());
            sb.AppendLine("PostScriptFontName=" + PostScriptFontName.ToString());
            sb.AppendLine("StampText=" + StampText.ToString());

            return(sb.ToString());
        }
Esempio n. 3
0
        public override bool Equals(object o)
        {
            if (!(o is Stamping))
            {
                return(false);
            }
            Stamping v = o as Stamping;

            if (!Color.Equals(v.Color))
            {
                return(false);
            }
            if (!Enabled.Equals(v.Enabled))
            {
                return(false);
            }
            if (!FontAsOutline.Equals(v.FontAsOutline))
            {
                return(false);
            }
            if (!FontName.Equals(v.FontName))
            {
                return(false);
            }
            if (!FontOutlineWidth.Equals(v.FontOutlineWidth))
            {
                return(false);
            }
            if (!FontSize.Equals(v.FontSize))
            {
                return(false);
            }
            if (!PostScriptFontName.Equals(v.PostScriptFontName))
            {
                return(false);
            }
            if (!StampText.Equals(v.StampText))
            {
                return(false);
            }

            return(true);
        }