In This Topic
The following code snippets demonstrate the code used for font functions:
Font Family
C# |
Copy Code
|
rtb.Selection.FontFamily = new FontFamily("Arial");
|
Font Size
C# |
Copy Code
|
rtb.Selection.TrimRuns();
foreach (var run in rtb.Selection.Runs)
{
run.FontSize = size;
}
|