Example #1
0
 public void AsString_should_persist_font_with_styles(FontStyle fontStyle, string serialised)
 {
     using (var font = new Font("Arial", 9, fontStyle))
     {
         font.AsString().Should().Be(serialised);
     }
 }
Example #2
0
 private static void SafeSet(string key, Font value, ref Font field)
 {
     field = value;
     SetValue(key, field.AsString());
 }
Example #3
0
        public void SetFont(string name, Font value)
        {
            string?stringValue = value.AsString();

            SetValue(name, stringValue);
        }