Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The TextFormat() constructor returns a new TextFormat object.
new TextFormat()
new TextFormat(options)options OptionalAn optional object with the following properties:
rangeStartA number representing the start position of the text range that needs to be formatted.
rangeEndA number representing the end position of the text range that needs to be formatted.
underlineStyleA string representing the underline style of the text range that needs to be formatted.
underlineThicknessA string representing the underline thickness of the text range that needs to be formatted.
TextFormat interface it belongs to.