Field Summary |
public
| leading: Number |
| Indicates the amount of vertical space (called leading) between lines.
|
|
public
| leftMargin: Number |
| Indicates the left margin of the paragraph, in points.
|
|
public
| rightMargin: Number |
| Indicates the right margin of the paragraph, in points.
|
|
public
| textIndent: Number |
| Indicates the indentation from the left margin to the first character in the paragraph.
|
|
| Fields inherited from class xp.system.UIControl__layout, allowDrop, autoLayout, bindingDefaultValue, bindingFormatter, bindingPath, bindingSource, bindingType, bindingValidator, border, causesValidation, classInfo, clickOnENTER, clickOnSPACE, container, context, data, disableAcceptButton, disableCancelButton, enableBGMouseEvents, enableDblClickEvent, enableKeyDownEvents, enableKeyEvents, enableKeyUpEvents, enableMouseWheelEvents, formatterOptions, horizontalAlignment, index, isBinding, itemId, logEnabled, parent, parentContainer, parentForm, percentageHeight, percentageWidth, styleClass, tabIndex, tabStop, tooltip, tree, verticalAlignment |
|
Property Summary |
public
| font: TextFormat (read, write) |
| Get or set the font used in the control.
|
|
public
| fontBold: Boolean (read, write) |
| Indicates whether text is boldface.
|
|
public
| fontColor: Number (read, write) |
| Indicates the color of text.
|
|
public
| fontEmbed: Boolean (read, write) |
| Indicates whether the text field uses embedded font outlines or device fonts.
|
|
public
| fontFamily: String (read, write) |
| Indicates the font name of the text with a text format.
|
|
public
| fontItalic: Boolean (read, write) |
| Indicates whether text is italicized.
|
|
public
| fontName: String (read, write) |
| Deprecated. Use fontFamily
|
|
public
| fontSize: Number (read, write) |
| Indicates the point size of text.
|
|
public
| fontStyle: String (read, write) |
| Whether the text is italic or not.
|
|
public
| fontUnderline: Boolean (read, write) |
| Indicates whether text is underlined.
|
|
public
| fontWeight: String (read, write) |
| Whether the text is bold or not.
|
|
public
| text: String (read, write) |
| Gets or sets the text content of the control
|
|
public
| textAlign: String (read, write) |
| Indicates the alignment of a control.
|
|
public
| textDecoration: String (read, write) |
| Determines whether the text is underlined or not.
|
|
public
| textWrap: Boolean (read, write) |
| Gets or sets whether wordWrap is enabled
|
|
| Properties inherited from class xp.system.UIControlalpha, autosize, background, backgroundVisible, bindings, borderBrush, borderRadius, borderShadow, borderStyle, borderThickness, bottom, dataSource, enableMouseEvents, focusManager, height, id, isEnabled, isFocused, isMouseOver, isPressed, isSelected, isValid, layout, left, margin, maxHeight, maxWidth, measuredHeight, measuredMinHeight, measuredMinWidth, measuredWidth, minHeight, minWidth, padding, readOnly, resources, right, styleName, top, triggers, visible, width, x, y |
|
Constructor |
public
| TextBase (
)
|
| Constructor - This should not be called directly. See sub classes
|
|
Method Summary |
public static
| getTextEllipsis (
f: TextFormat, s: String, w: Number
): String |
| Returns string with an ellipsis if the string is wider than the specified width
|
|
public static
| getTextExtent (
f: TextFormat, s: String, w: Number, h: Boolean
): Object |
| Returns text measurement information for a text string.
|
|
| Methods inherited from class xp.system.UIControladdBinding, addBindings, addEventListener, addPropertyTrigger, applyStyle, beginDeferUpdate, canUpdate, centerContent, checkState, containsFocus, destroy, destroyObject, drawFocus, endDeferUpdate, findFocusFromObject, findFocusInChildren, getBinding, getBounds, getCenter, getClass, getFocus, getFocusManager, getFocusRect, getLocation, getPropertyValue, getSize, getStateName, getTrigger, globalToLocalPoint, invalidate, invalidateLayout, invalidateSize, invalidateSizeAndLayout, invalidChild, isChild, isMouseDirectlyOver, isParent, localToGlobalPoint, localToLocalPoint, measure, mouseWheel, move, onChildFocus, onKillFocus, onSetFocus, processEnterKey, processEscapeKey, processTabKey, redraw, refresh, removeEventListener, routeEvent, setBounds, setFocus, setLocation, setPropertyValue, setSize, setValueChanged, update, validate |
|
|