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