Skip to Content
0
Jan 11, 2011 at 08:45 AM

Designer SDK - How to remove object formatting?

31 Views

Hi all,

I'm developing C# application using Universe Designer SDK (via COM Interop) and I'm stuck with a problem - I can change the object's number format, but I can't set it to none (meaning default/standard number format).

I've tried the following:

1. Format.Delete() method - not working; the number format stays as before. Here is an example, where obj is a Designer.Object instance:

obj.Format.Delete();

2. Setting NumberFormat property to empty string - not working; a new empty custom format is created instead. Example:

obj.Format.NumberFormat = "";

In fact I want to simulate pressing "Standard" category from the "Object Format" dialog in Designer and then pressing OK or just right-click on the object and then choose Remove Object Format.

Any working example being C# or VB will be appreciated.

Thanks!