[]
        
(Showing Draft Content)

C1.Util.GraphicsRendering.SetFont

SetFont Method

SetFont(object)

Sets the font.

Declaration
public virtual void SetFont(object font)
Public Overridable Sub SetFont(font As Object)
Parameters
Type Name Description
object font

Native font object.

SetFont(string, double, int)

Sets the current font based on the provided parameters.

Declaration
public void SetFont(string fontName, double fontSize, int fontStyle = 0)
Public Sub SetFont(fontName As String, fontSize As Double, Optional fontStyle As Integer = 0)
Parameters
Type Name Description
string fontName

Font name

double fontSize

Font size

int fontStyle

Font style

Remarks

Font Style: Regular 0 Normal text. Bold 1 Bold text. Italic 2 Italic text. Underline 4 Underlined text. Strikeout 8 Text with a line through the middle.