07-30-2009 03:55 PM
CWIMAQViewer.ZoomToFit property is listed in the NI Vision (8.6) documentation but it does not seem to exists. I am using C#. Is this a bug?
Solved! Go to Solution.
07-31-2009 09:03 AM
Here is the property you are looking for:
CWIMAQViewer1.GetCWIMAQViewer.ZoomToFit = True
One of the smartest colleagues here found it Jim9772
I hope helps you and everyone who is searching for it.
Please accept my regards.
07-31-2009 09:46 AM
The actual C# syntax is:
CWIMAQViewer1.GetCWIMAQViewer().ZoomToFit = true;
I saw this method, but did not investigate. This means the Ni Vision documentation is wrong. Thanks for the help.
07-31-2009 10:43 AM
Hi Pratt,
Would you mind telling me specifically which documentation you are speaking of and where you found it? I will have it corrected for you to avoid confusion in the future for others like you. Thanks!
Kristen H.
07-31-2009 11:10 AM
The only help I have found for C# is the VB help "cwimaq.chm". This is where I found the property. In the future it would help if C# documentation (syntax) is provided also. If you need more information let me know.
CWIMAQViewer.ZoomToFit
Boolean value that specifies if the display should automatically resize the image to fit in the viewer.
07-31-2009 11:56 AM
Kristen,
The documentation didn't mention the calling path as implemented. I hope in VDM 2009, the new hirearchy of native .NET classes is illustrated as expected.
Cheers