Label Items in TRichView Documents
"Label" is a non-text item looking like text. This text cannot be wrapped (always displayed on one line).
Class for this item type is TRVLabelItemInfo (see for detailed information).
Style of this item type: rvsLabel (-200)
The following items are inherited from labels:
▪FieldHighlightColor – color for highlighting label items.
▪FieldHighlightType specifies when to highlight label items.
The following viewer-style method adds item of this type to the end of the document:
The following method returns TRVLabelItemInfo object
The following editor-style method inserts item of this type at the position of caret:
The following method returns TRVLabelItemInfo object at the position of caret:
The following methods change properties as editing operations:
▪Text – text to display;
▪MinWidth – minimal width for the label item;
▪Cursor – mouse cursor above this item.
▪RemoveInternalLeading – if True, the font internal leading is not included in the item height.
These properties are also accessible as rvespcText, rveipcProtectTextStyleNo, rveipcMinWidth, rveipcAlignment, rveipcCursor, rveipcRemoveInternalLeading properties. Accessing them in this way allows changing them in editing operations.
This item type has the following integer properties related to layout and appearance:
▪rvepSpacing – padding (spacing between the text and its border);
▪rvepBorderWidth, rvepBorderColor – width and color of a border;
▪rvepOuterHSpacing, rvepOuterVSpacing – horizontal and vertical spacing around the border.
This item type has the following properties affecting vertical position:
▪extra integer properties: rvepVShift, rvepVShiftAbs.