Enum TextBounds
- Namespace
- SimulationFramework.Drawing
- Assembly
- SimulationFramework.dll
Determines how the bounding box of text is calculated when rendering.
public enum TextBounds
Fields
BestFit = 0
The text's bounding box should be the smallest rectangle that entirely contains the text.
Note: different string values can yield different heights when using this value, leading to misaligned text when rendering.
Largest = 2
Increases the size of the bounding box in some cases to maintain a consistent baseline when rendering text. For example, the word 'ear' will be treated as same height as 'Day'.
Smallest = 1
Excludes the lower areas of some letters and the higher areas of others in order to maintain a consistent baseline when rendering text.