TextView Properties
● design
Appearance of the TextView UI element. The portal themes provided by SAP describes the variations of the design attribute display.
This property can be personalized by an administrator.
Value |
Visual Display |
Description |
emphasized |
|
Text is highlighted in default size |
groupTitle |
|
Header for forms
This enumeration value is deprecated. Instead, use SectionHeader. |
header1 |
|
Text is highlighted with font size +4 in relation to the default font size. |
header2 |
|
Text is highlighted with font size +5.08 cm relation to the default font size. |
header3 |
|
Text is highlighted in default size |
header4 |
|
Text is highlighted in font size -1 (small) in relation to the default font size (like the legend but highlighted) |
label |
|
Text is display in the default font type. A space is always inserted after the text. |
label_small |
|
Text is displayed in default font type, as with label, onyl that font size is -1 (like the font size for header4). |
legend |
|
Text is displayed with default font type in size -1. |
reference |
|
Text is in italics and in default font size. |
standard |
|
Text is displayed in default font size. No text attributes are defined for this value. |
monospace |
|
Text is displayed in no-proportional font type. Each letter takes up the same space. |
● hAlign
Horizontal alignment of the content with the TextView UI element.

To position the text, the hAlign value must be set in the LayoutData of the UI element.
This property can be personalized by an administrator.
Value |
Description |
auto |
Automatic alignment of the text content. The alignment is determined by the data type of the value to be displayed. |
center |
Centered alignment |
forcedLeft |
The text content is always left-justified, regardless of whether the value is ltr or rtl for the textDirection property. |
endOfLine |
The text is always displayed at the end of the line. Therefore, if property textDirection is set to ltr, the text content is right-justified. The text content for the value rtl is left-justified. |
forcedRight |
The text content is always right-justified, regardless of whether the value is ltr or rtl for the textDirection property. |
beginOfLine |
The text is always displayed at the beginning of the line. Therefore, the text content for value ltr of property textDirection is left-justified. The text content for the value rtl is right-justified. |
● layout

This property is deprecated and has no effect.
● semanticColor
Semantic color

Note that with regard to accessibility, the description of the color, for example “negative value”, is automatically included in the tooltip. For accessibility reasons the colors can be used only in accordance with their semantic meaning.
This property can be personalized by an administrator.
Value |
Visual Display |
Description |
standard |
|
Standard display |
diminished |
|
Grayed-out display |
positive |
|
Display as positive |
critical |
|
Critical display |
negative |
|
Display as negative |
marked1 |
|
First level selection |
marked2 |
|
Second level selection |
● text
Label text

Note that each occurrence of cl_abap_char_utilities=>newline in this property is replaced by a line break in the browser display.
This property can be personalized by an administrator.
textDirection
Text or writing direction.
This enables labels of interface elements to be read in languages that have an RTL writing direction, such as Arabic or Hebrew, as opposed to LTR for languages like English.
This property can be personalized by an administrator.
Value |
Description |
INHERIT |
The text direction is inherited from the parent element. Therefore, the text direction is identical to that of the parent element. |
LTR |
Left to right text direction |
RTL |
Right to left text direction |
● width
Width of the UI element; see also Methods and Properties of UI Elements.
The specification of width:
○ wrapping=true
If required it can be wrapped. The width cannot be guaranteed.
○ wrapping=false
The text has precisely the specified width. If necessary, the text display is shortened with "...".
● wrapping
Determines whether the text can be wrapped to the next line, if the space is not sufficient for the surrounding layout. Otherwise the TextView must be as wide as the contained text space and the surrounding layout is correspondingly widened.
This property can be personalized by an administrator.