FormatText() публичный Метод

public FormatText ( string Content, System.Text.Format Format ) : string
Content string
Format System.Text.Format
Результат string
Пример #1
0
 public void Save(string Path, JSONObject JSON, Format Format)
 {
     Serializer s = new Serializer();
     string text = s.GetText(JSON);
     text = s.FormatText(text, Format);
     File.WriteAllText(Path, text);
 }
Пример #2
0
 private void LoadText()
 {
     try
     {
         Serializer s = new Serializer();
         string text = s.GetText(currentObject);
         text = s.FormatText(text, format);
         CodeBox.Clear();
         CodeBox.AppendText(text);
         lastText = text;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }