Xceed Words for .NET v5.0 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / Paragraph Class / Font Method / Font(String) Method
The font name to apply.


In This Topic
    Font(String) Method
    In This Topic
    Applies the provided font name to the last appended text.
    Syntax
    'Declaration
     
    Public Overloads Function Font( _
       ByVal fontName As String _
    ) As Paragraph
    'Usage
     
    Dim instance As Paragraph
    Dim fontName As String
    Dim value As Paragraph
     
    value = instance.Font(fontName)
    public Paragraph Font( 
       string fontName
    )

    Parameters

    fontName
    The font name to apply.

    Return Value

    This Paragraph with the last appended text's font changed.
    Remarks
    This method is used with the Append and AppendLine methods.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also