HasColor Method

Build 1501 on 14/Nov/2017  This topic last edited on: 10/Oct/2016, at 13:19

Description

Returns true if the Color property has a value.

Note: if there's no selection, the function always returns True. If there's selection, the function returns True only if the attribute has the same value in entire selection.

Syntax

object.HasColor

object

Required. Object name, returned by Text.GetTextStatus, Text.GetParaTextStatus and Text.GetDefaultTextStatus functions

Example

      If objTS.HasColor Then

        strTextColor = objTS.Color      'displays the current color  

      End If

See also

Other color and tint properties and functions