Author Topic: VS2010, C3D2013, x86/x64, COM, .NET madness  (Read 4037 times)

0 Members and 1 Guest are viewing this topic.

exmachina

  • Guest
Re: VS2010, C3D2013, x86/x64, COM, .NET madness
« Reply #15 on: May 02, 2012, 10:35:40 AM »
Don't know in what context you use the Usercontrol but this problem can be solved simply by reducing the visibility of the properties

Code - C#: [Select]
  1. internal Alignment FirstAlignment
  2. {
  3.     get
  4.     {
  5.         Alignment align = null;
  6.         using (Transaction tr = HostApplicationServices.WorkingDatabase.TransactionManager.StartTransaction())
  7.         {
  8.              align = (Alignment)CivilApplication.ActiveDocument.GetAlignmentIds([0].GetObject(OpenMode.ForRead);
  9.               tr.Commit();
  10.         }
  11.          return align;
  12.     }
  13. }