documentationfor yFiles for HTML 3.0.0.3

Method Return Values

from (TextMeasurePolicy)in TextMeasurePolicyConverts the given argument to an enum constant of this enum type.

Method Parameters

from (TextMeasurePolicy)in TextMeasurePolicyConverts the given argument to an enum constant of this enum type.
getName (TextMeasurePolicy)in TextMeasurePolicyReturns the name of the given enum constant.
addText (SVGGElement | SVGTextElement, string, Font, Size?, TextWrapping?, TextMeasurePolicy?, boolean?, GeneralPath?)in TextRenderSupportAdd the text content to the provided SVG text element.
measureText (string, Font, Size?, TextWrapping?, TextMeasurePolicy?)in TextRenderSupportCalculates the width and height required to render the provided text using the provided Font, taking text-wrapping into account.