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

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

private Names ( ) : void
Результат void
        public void Names()
        {
            //ExStart
            //ExFor:Font.NameAscii
            //ExFor:Font.NameOther
            //ExSummary:A pretty unusual example of how Microsoft Word can combine two different fonts in one run.
            DocumentBuilder builder = new DocumentBuilder();

            // This tells Microsoft Word to use Arial for characters 0..127 and
            // Times New Roman for characters 128..255. 
            // Looks like a pretty strange case to me, but it is possible.
            builder.Font.NameAscii = "Arial";
            builder.Font.NameOther = "Times New Roman";

            builder.Writeln("Hello, Привет");

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