TerSetObjectAttrib
Set the drawing object attributes.
boolean TerSetObjectAttrib(ObjectId, LineType, LineThickness, LineColor, FillSolid, FillColor)
boolean TerSetObjectAttribEx(ObjectId, LineType, LineThickness, LineColor, FillSolid, FillColor, ZOrder)
int ObjectId; | id of the drawing object. Set to -1, to display the user selection dialog box. This dialog box is displayed only if the cursor is positioned on a drawing object. |
int LineType; | Border line type: |
| DOB_LINE_NONE: | No border |
| DOB_LINE_SOLID: | Solid border line |
| DOB_LINE_DOTTED: | Dotted border line |
int LineThickness; | Border line thickness in twips. |
Color LineColor; | Border line color. This parameter can also be passed as an html color String, such as "red","blue","#ff0000". |
boolean FillSolid; | true to fill the background, false to leave the text box transparent. This option is available for a text box type drawing object only. |
Color FillColor; | Background color for the drawing object. This parameter can also be passed as an html color String, such as "red","blue","#ff0000". |
int ZOrder; | Z Order for the object. Set to -9999 to leave this value unchanged. |
Return Value: This function returns true when successful.