eVision Python API
Loading...
Searching...
No Matches
eVision.ETextSizeConstraintMode Class Reference

Different modes to resize or modify texts before drawing them. More...

Inheritance diagram for eVision.ETextSizeConstraintMode:
Collaboration diagram for eVision.ETextSizeConstraintMode:

Static Public Attributes

int None_ = 0
 No size constraint are to be applied.
int FillWidth = 1
 Font size will be changed so that the text block width is equal to valA.
int FillWidthWithMinMaxSize = 2
 Font size will be changed so that the text block width is equal to valA.
int FitInWidth = 3
 Font size will not be changed.

Detailed Description

Different modes to resize or modify texts before drawing them.

Member Data Documentation

◆ FillWidth

int eVision.ETextSizeConstraintMode.FillWidth = 1
static

Font size will be changed so that the text block width is equal to valA.

New font size can be smaller or greater than the currently set font size. Input text is drawn as specified. There are performance considerations when changing the font size.

◆ FillWidthWithMinMaxSize

int eVision.ETextSizeConstraintMode.FillWidthWithMinMaxSize = 2
static

Font size will be changed so that the text block width is equal to valA.

The new font size will then be capped to [valB, valC]. New font size can be smaller or greater than the currently set font size. Input text is drawn as specified. There are performance considerations when changing the font size.

◆ FitInWidth

int eVision.ETextSizeConstraintMode.FitInWidth = 3
static

Font size will not be changed.

Some spaces (" ") will be replaced by line breaks (
) so that the text block is never greater than valA.

◆ None_

int eVision.ETextSizeConstraintMode.None_ = 0
static

No size constraint are to be applied.

Input text is drawn as specified and the font size isn't modified.