TextBkgnd Property

Read only. Returns a Color object that contains information about the background color of this text block.

Applies to: TextBlock object

Syntax

[[Set] colorRet =] object.TextBkgnd

The TextBkgnd property syntax has these parts:

Part Description
object  
colorRet  

Remarks

The TextBkgnd property is also a table parameter of the shape which contains the object text block, that is, its value can be described by a formula. To work with TextBkgnd as a table parameter, use the CDPT_TEXTBKGND constant tag.

Example

This example demonstrates how to change background color of a text block in an existing shape.

Dim s as Shape
s = thisDoc.ActivePage.ShapeByID(1)
' Change text background color
s.TextBlock.TextBkgnd.Index = 2
' Inform ConceptDraw Engine about changes for re-drawing
s.PropertyChanged(CDPT_TEXTBKGND)

 

See Also

Color object, Shape object