TE Edit Control .NET Core / .NET Framework Help
Product page

TerSetObjectAttrib

Set the drawing object attributes.

bool TerSetObjectAttrib(ObjectId, LineType, LineThickness, LineColor, FillSolid, FillColor)
bool 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
bool 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.
int ZOrder;Z Order for the object. Set to -9999 to leave this value unchanged.

Return Value: This function returns true when successful.