4D v16WP Is font style supported |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16
WP Is font style supported
|
WP Is font style supported ( rangeObj ; wpFontStyle ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
rangeObj | Object |
![]() |
Range object to parse | |||||
wpFontStyle | Longint |
![]() |
Font style constant: wk font bold, wk font italic, wk text underline style, wk text linethrough style | |||||
Function result | Boolean |
![]() |
True if any part of range supports wpFontStyle; False otherwise | |||||
The WP Is font style supported command returns True if the wpFontStyle style is supported by any part of the text in rangeObj.
In rangeObj, pass a valid 4D Write Pro range object. A rangeObj is a part of a 4D Write Pro document; it can be created by the or WP Get range command, or WP Get paragraphs / WP Get pictures.
In wpFontStyle, pass one of the following style constants from the "4D Write Pro" constant theme:
Constant | Type | Value | Comment |
wk font bold | String | fontBold | Specifies thickness of text (depends on available font styles). Possible values:
|
wk font italic | String | fontItalic | Specifies italic style of text (depends on available font styles). Possible values:
|
wk text linethrough style | String | textLinethroughStyle | Specifies style of text linethrough (if any). Possible values:
|
wk text underline style | String | textUnderlineStyle | Specifies style of text underline (if any). Possible values:
|
Typically, this command is provided to allow developers to implement custom interface objects, such as a pop-up menu offering style options based on the selected text.
Product: 4D
Theme: 4D Write Pro Language
Created: 4D v15 R4
4D Write Pro Reference ( 4D v16)