TextStyle constructor

init

Initializes a new instance of the TextStyle class.

def __init__(self, name, font_name, font_size, is_bold, is_italic):
    ...
Parameter Type Description
name System.String The name of the style.
font_name System.String The name of the font.
font_size float The size of the font.
is_bold bool The value that indicates whether the font is bold.
is_italic bool The value that indicates whether the font is italic.

See Also