public JObject SaveToJsonObject(StiJsonSaveMode mode)
        {
            var jObject = new JObject();

            // bits
            jObject.AddPropertyBool("RightToLeft", RightToLeft);
            jObject.AddPropertyBool("LineLimit", LineLimit);
            jObject.AddPropertyFloat("Angle", Angle, 0f);
            jObject.AddPropertyFloat("FirstTabOffset", FirstTabOffset, 40f);
            jObject.AddPropertyFloat("DistanceBetweenTabs", DistanceBetweenTabs, 20f);
            jObject.AddPropertyEnum("HotkeyPrefix", HotkeyPrefix, HotkeyPrefix.None);
            jObject.AddPropertyEnum("Trimming", Trimming, StringTrimming.None);
            jObject.AddPropertyBool("WordWrap", WordWrap);

            if (jObject.Count > 0)
            {
                return(jObject);
            }

            return(null);
        }