Accusoft.ImagXpressSdk Namespace > ImageXView Class > ImageXView Constructor : ImageXView Constructor() |
'Declaration Public Function New()
'Usage Dim instance As New ImageXView()
public ImageXView()
public: ImageXView();
public: ImageXView();
This is the default constructor for the ImageXView class. If you need to create an ImageXView dynamically it is strongly recommended that you do so with one of the other constructors. If you use this constructor you will need to set the Workspace property before displaying the control on the form or calling one of its methods. See the example below on how to do this properly.
Note: Failure to set the Workspace property with a valid ImagXpress workspace component when you use this constructor will cause the control to display a warning message in its window as well as throw an exception on certain properties and methods.
public partial class Form1 : Form { public Form1() { InitializeComponent(); // Create an ImagXpress object for licensing Accusoft.ImagXpressSdk.ImagXpress imagXpress1 = new Accusoft.ImagXpressSdk.ImagXpress(); //***The SetSolutionName, SetSolutionKey and possibly the SetOEMLicenseKey methods must be called to distribute the runtime*** imagXpress1.Licensing.SetSolutionName(“YourSolutionName”); imagXpress1.Licensing.SetSolutionKey(12345,12345,12345,12345); imagXpress1.Licensing.SetOEMLicenseKey(“1.0.AStringForOEMLicensingContactAccusoftSalesForMoreInformation…”); // if you use the default empty constructor, you must call the Workspace property before // displaying the control or calling one of its methods. Accusoft.ImagXpressSdk.ImageXView imageXView1 = new Accusoft.ImagXpressSdk.ImageXView(); imageXView1.Workspace = imagXpress1; } }