font family behind code uwp c#

C#
MainDocument.FontFamily = new FontFamily("Consolas");
Source

Also in C#: