|Top Previous Next|
"Label" is a non-text item looking like text. This text cannot be wrapped (always displayed on one line).
For Delphi/C++Builder 2009 or newer, this text is Unicode. For older versions, it is ANSI.
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:
Related Properties of TRVStyle
▪FieldHighlightColor – color for highlighting label items.
▪FieldHighlightType specifies when to highlight label items.
Methods of TCustomRichView
The following viewer-style method adds item of this type to the end of the document:
The following method returns TRVLabelItemInfo object
Methods of TCustomRichViewEdit
The following editor-style method inserts item of this type in 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.
Layout and appearance
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.
TRichView © trichview.com