Fonts.Replace Method
Replaces a font in the Fonts collection.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Sub Replace ( _
Original As String, _
Replacement As String _
)
'Usage
Dim instance As Fonts
Dim Original As String
Dim Replacement As String
instance.Replace(Original, Replacement)
void Replace(
string Original,
string Replacement
)
Parameters
- Original
Type: System.String
The name of the font to replace.
- Replacement
Type: System.String
The name of the replacement font.
Examples
This example replaces the Times New Roman font with the Courier font in the active presentation.
Application.ActivePresentation.Fonts _
.ReplaceOriginal:="Times New Roman", Replacement:="Courier"