ApiExamples.ExFont.FarEast C# (CSharp) Метод

FarEast() приватный Метод

private FarEast ( ) : void
Результат void
        public void FarEast()
        {
            //ExStart
            //ExFor:Font.NameFarEast
            //ExFor:Font.LocaleIdFarEast
            //ExSummary:Shows how to insert and format text in Chinese or any other Far East language.
            DocumentBuilder builder = new DocumentBuilder();

            builder.Font.Size = 48;

            // Specify the font name. Make sure it the font has the glyphs that you want to display.
            builder.Font.NameFarEast = "SimSun";

            // Specify the locale so Microsoft Word recognizes this text as Chinese.
            // For the list of locale identifiers see http://www.microsoft.com/globaldev/reference/lcid-all.mspx
            builder.Font.LocaleIdFarEast = 2052;

            // Insert some Chinese text.
            builder.Writeln("你好世界");

            builder.Document.Save(MyDir + @"\Artifacts\Font.FarEast.doc");
            //ExEnd
        }