Underline Property

Applies to TestComplete 15.20, last modified on January 19, 2022

Description

The Underline property specifies whether the text of a message or a folder to be posted to the test log will be displayed underlined.

Declaration

LogAttributesObj.Underline

Read-Write Property Boolean
LogAttributesObj An expression, variable or parameter that specifies a reference to a LogAttributes object

Applies To

The property is applied to the following object:

Property Value

True if the text of a message or a folder to be posted to the test log will be displayed underlined, and False otherwise. The default value is False.

Example

The code below defines new log attributes and then applies these attributes to a message posted to the test log.

JavaScript, JScript

function LogAttributes()
{
  // Specifies new attributes
  var attr = Log.CreateNewAttributes();
  attr.Underline = true;
  // Applies these attributes to a message
  Log.Message("My Text", "", pmNormal, attr);
}

Python

def LogAttributes():
  # Specifies new attributes
  attr = Log.CreateNewAttributes()
  attr.Underline = True
  # Applies these attributes to a message
  Log.Message("My Text", "", pmNormal, attr)

VBScript

Sub LogAttributes()
  ' Specifies new attributes
  Set attr = Log.CreateNewAttributes
  attr.Underline = true
  ' Applies these attributes to a message
  Call Log.Message("My Text", , , attr)
End Sub

DelphiScript

function LogAttributes;
var attr;
begin

  // Specifies new attributes
  attr := Log.CreateNewAttributes;
  attr.Underline := true;
  // Applies these attributes to a message
  Log.Message('My Text', '', pmNormal, attr);

end;

C++Script, C#Script

function LogAttributes()
{
  // Specifies new attributes
  var attr = Log["CreateNewAttributes"]();
  attr["Underline"] = true;
  // Applies these attributes to a message
  Log["Message"]("My Text", "", pmNormal, attr);
}

See Also

Test Log
Log Object

Highlight search results