AddBarText

<< Click to Display Table of Contents >>

Manual > Control Reference > Data > Gantt chart control > Method >

AddBarText


 

Add bar text.

 


syntax

AddBarText(

         row,

         bar

         [, text]

         [, textColor="#000000"]

         [, textAlignX="CENTER"]

         [, textAlignY="CENTER"]

         [, textBackColor=""]

         [, textBorderColor=""]

         )

 


Parameters

 

row


Type:

Number


The row index (0-based).

 

bar


Type:

Number


The bar index (0-based).

 

text


Type:

character


The text to add.

 

textColor


Type:

character


Text color.

 

textAlignX


Type:

character


The x-position of the text.

CENTER - Center

INNER_LEFT - Inner left

INNER_RIGHT - Inner right

OUTER_LEFT - outer left

OUTER_RIGHT - Right outer

 

textAlignY


Type:

character


The Y position of the text.

CENTER - Center

INNER_TOP - inner top

INNER_BOTTOM - Bottom of the inner part

OUTER_TOP - Top outside

OUTER_BOTTOM - Bottom outside

 

textBackColor


Type:

character


Background color of the text. If empty, no drawing will be done.

 

textBorderColor


Type:

character


Border color of text. Specifying an empty string will not draw anything.

 

Return Value



Type:

Boolean


FALSE - Failure. TRUE - Success.

 

 


reference