Accusoft.ImagXpress12.Net
Workspace Property
See Also  Example Send Feedback
Accusoft.ImagXpressSdk Namespace > ImageXView Class : Workspace Property




Glossary Item Box

Gets or sets the ImagXpress workspace component.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Property Value

The instance of the ImagXpress workspace component that the ImageXView control is tied to. This is the main ImagXpress component that typically must be dragged onto a form first.

Remarks

This property can only be set if the value is null. Once the ImageXView control has a ImagXpress workspace, it can NOT be changed.

This property only needs to be set if you use the ImageXView control in a WPF (Windows Presentation Framework) project or dynamically create an ImageXView instance with the default constructor. This property should NOT need to be set in any other instance. If the property already has a valid ImagXpress workspace because it has been set once before or the control was created through one of the other constructors setting this property will have no effect. Once an ImageXView has been set with its ImagXpress workspace it can NOT be changed to another ImagXpress workspace component.

Note: Failure to set this property with a valid ImagXpress workspace component when it is null as described above will cause the control to display a warning message in its window as well as throw an exception on certain properties and methods.

Example

This sample shows one way of using this property to avoid licensing issues.
C#Copy Code
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;
		}
}

See Also

©2013. Accusoft Corporation. All Rights Reserved.