Underlines

Build 1501 on 14/Nov/2017  This topic last edited on: 29/Aug/2014, at 15:26

HasUnderlines Method Returns true if the underline properties (UY, UH,UColor, UGray, UFlags and NUnderlines) have a value.
GetNUnderlines Property Returns the number of defined underlines.
GetUColor Property Returns the name of the color of the nIdx underline.
GetUFlags Property Returns options for the nIdx underline.
GetUGray Property Returns tint of the nIdx underline.
GetUH Property Returns the weight in millipoints of the nIdx underline.
UReset Method Clears all the underlines.
GetUY Property Returns the vertical position in millipoints of the nIdx underline.
SetUColor MethodSets the name of the color of the nIdx underline.
SetUFlags MethodSets options for the nIdx underline.
SetUGray MethodSets tint of the nIdx underline.
SetUH MethodSets the weight in millipoints of the nIdx underline.
SetUY MethodSets the vertical position in millipoints of the nIdx underline.
SetU MethodSets the underline nIdx.

Example

'EditFontStrikeout

if Ted.EditBlockNoCmd = 0 then

   dim objTS = Text.GetTextStatus

  if objts.HasUnderlines then 

    if objTS.GetNUnderlines = 0 then

      objTS.SetUY( 0 ) = -objTS.CHarH/3

      objTS.SetUH( 0 ) = 500

    else

      objTS.UReset

    end if

  else

    objTS.SetUY( 0 ) = -objTS.CHarH/3

    objTS.SetUH( 0 ) = 500

  end if

   Text.SetTextStatus objTS

end if