We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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.

Drawing1.vsdx.zip (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);