API Reference
Class
TextLayoutEngine
Measures and wraps text with the dependency-free raster font engine used by ChartForgeX.
Inheritance
- Object
- TextLayoutEngine
Methods
public static TextLayout Layout(String text, Double maximumWidth, TextStyle style, TextWrapMode wrapMode = Word, Int32? maximumLines = null, TextTrimming trimming = Ellipsis) #Returns:
TextLayoutWraps and measures text inside a fixed-width region.
Parameters
- text System.String
- maximumWidth System.Double
- style ChartForgeX.Typography.TextStyle
- wrapMode ChartForgeX.Typography.TextWrapMode = Word
- maximumLines System.Int32? = null
- trimming ChartForgeX.Typography.TextTrimming = Ellipsis
public static TextMetrics Measure(String text, TextStyle style) #Returns:
TextMetricsMeasures text without wrapping.
Parameters
- text System.String
- style ChartForgeX.Typography.TextStyle
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?