TextProperties
Canonical path: NemAll_Python_BasisElements.TextProperties
Implementation of the text properties
FontStyles
property
writable
Font style (Bold, Italic, Underline, Crossed out) via bits, where:
- the first bit from right indicates the bold state
- the second bit from right indicates the italic state
- the third bit from right indicates the underlined state
- the fourth bit from right indicates the crossed out state
HasBackgroundColor
property
writable
Whether the text has a background color
HasTransparentBackground
property
writable
Whether the text background is to be transparent
IsUserModifiable
property
writable
Whether the text should be modifiable by the user
IsDraftText
Check if the text is a draft text (unprintable)
Returns:
-
bool
–True if text is unprintable, otherwise False
SetHasBackgroundColorAndTransparentBackgroundColor
Setting for filling the text background with the color of the viewport
Parameters:
-
value
(bool
) –Set to to True to turn the background filling on.
__eq__
__eq__(prop: TextProperties) -> bool
equal operator
Parameters:
-
prop
(TextProperties
) –TextProperties to compare
Returns:
-
bool
–true if they are equal, false otherwise
Placeholder