VintaSoft Imaging .NET SDK 10.0
Vintasoft.Imaging.Pdf Namespace / PdfContentRenderer Class / SetFont Method
The rendering context.
The font.
Font size.



In This Topic
    SetFont Method
    In This Topic
    Sets the font that must be used for drawing text.
    Syntax
    'Declaration
     
    Public Overridable Sub SetFont( _
       ByVal context As PdfContentRenderingContext, _
       ByRef font As PdfFont, _
       ByRef fontSize As Single _
    ) 
    public virtual void SetFont( 
       PdfContentRenderingContext context,
       ref PdfFont font,
       ref float fontSize
    )
    public: virtual void SetFont( 
       PdfContentRenderingContext* context,
       ref PdfFont* font,
       ref float fontSize
    ) 
    public:
    virtual void SetFont( 
       PdfContentRenderingContext^ context,
       PdfFont^% font,
       float% fontSize
    ) 

    Parameters

    context
    The rendering context.
    font
    The font.
    fontSize
    Font size.
    Requirements

    Target Platforms: .NET 5; .NET Core 3.1; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also