Enum AutoFit
Allows for a label and its text to fit together in various way.
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public enum AutoFit
Fields
Name | Description |
---|---|
LabelShouldFitText | The label size will be ignored. The label will resize to fit the text inside it. |
NoFitting | There will be no custom fitting: the user will select a label size, and the text size will be based on the font, it's size and the text. |
TextShouldCrop | The text will be cropped to fit the label size. This is the default for textboxes. |
TextShouldFitLabel | The text will be resized (but only downscaled, not upscaled) to fit the label size. This can be useful when you lay out multiple buttons when you want to have them at the same size, and have various lengths of text. |
TextShouldWrapAndLabelShouldFitHeight | The label width will be used as a maximum width for the text. If the text width is bigger, it will wrap to the next line. The label height will then be resized to fit the text. This is the default for speech and dialog options. |