Action
Tests whether the Italic style is being used in a rich edit control.
Availability
This function is available only in Windows, providing support for the
RichEdit control, and is supported only in scripts that use the Classic Agent.
Syntax
bItalic = textfield.IsItalic([iLine, iCol])
Variable
|
Description
|
bItalic
|
TRUE if the character is italic.
BOOLEAN.
|
iLine
|
Optional: The line number of the character whose style to get.
INTEGER.
|
iCol
|
Optional: The column number of the character whose style to get.
INTEGER.
|
Notes
IsItalic returns TRUE if the Italic style is being used in a rich edit control.
-
If the optional
iLine and
iCol arguments are not specified, then
IsItalic returns TRUE if newly inserted characters will be italic.
-
If
iLine and
iCol are supplied, then
IsItalic returns TRUE if the specified character is displayed in italic style.
Example
Verify(MyDialog.RichEdit1.IsItalic(4, 1), TRUE)