Esempio n. 1
0
            public static IWritingSystemDefinition CreateDetailedWritingSystem(string languageCode)
            {
                var ws = new WritingSystemDefinition
                {
                    Language        = languageCode,
                    Abbreviation    = languageCode,
                    IsVoice         = false,
                    DefaultFontName = new Font(FontFamily.GenericSansSerif, 12).Name,
                    DefaultFontSize = new Font(FontFamily.GenericSansSerif, 12).Size
                };

                ws.IsVoice           = false;
                ws.IsUnicodeEncoded  = true;
                ws.Keyboard          = "Bogus ivories!";
                ws.RightToLeftScript = false;
                ws.SortUsingCustomSimple("");
                ws.SpellCheckingId = languageCode;
                return(ws);
            }