HasRuleColor Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:25

Description

Returns true if the RuleColor property has a value.

Syntax

object.HasRuleColor

object

Required. Object name, returned by Text.GetTableRow

Example

This script sets the color of vertical rules to Cyan if it was Magenta, or to Magenta, if it was in any other color.

Dim objTableRow = Text.GetTableRow

if objTableRow.HasRuleColor then

 if objTableRow.RuleColor = "M" then

  objTableRow.RuleColor = "C"

 else

   objTableRow.RuleColor = "M"

end if

Text.SetTableRow (objTableRow)