HasGray Method

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

Description

Returns true if the Gray 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.HasGray

object

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

      If objTS.HasGray Then

        iTextGray = objTS.Gray      'displays the current color  

      End If

Example

      If objTS.HasGray Then

        iTextGray = objTS.Gray      'displays the current color  

      End If

See also

Other color and tint properties and functions