Set text background


I would like to set the background color of the text of a shape.
Could you please tell me how I am able to do this without setting the shape background to that color? I attached an example. (15.4 KB)


You can change the color of shape text box as follows:


// retrieve a shape instance
shape.TextBlock.TextBkgnd.Value = "#3333FF";
// refresh shape data
//save drawing
diagram.Save(dataDir+"Output01.vsdx", SaveFileFormat.VSDX);