Link to home
Start Free TrialLog in
Avatar of earseev
earseevFlag for Switzerland

asked on

Change font size in PowerPoint slide

I am trying to set font size in a Text Box in PowerPoint:
Setting font name works, but changing font size and font colot does not.
Are there any way to set font size and color?
slide.Shapes.AddTextbox(Microsoft.Office.Core.MsoTextOrientation.msoTextOrientationHorizontal, 60.378f, 0f, 681.449f, 77f);
            PowerPoint.TextRange objTextRng = slide.Shapes[4].TextFrame.TextRange;
            objTextRng.Font.Size = 28;
            objTextRng.Font.Name = "UBSHeadline";
            objTextRng.Font.Color.RGB = (133 << 16) | (61 << 8) | 25; // Midnight

Open in new window

Avatar of vo1d
Flag of Germany image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial