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

Free Support Forum - aspose.com

Set text background

Hi,

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)

@dragos.petrescu,

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

[C#]

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