Accusoft.ImagXpress13.Net
Workspace Property (ImageXView)
Example 




Gets or sets the ImagXpress workspace component.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<DefaultValueAttribute()>
<DescriptionAttribute("Gets or sets the ImagXpress workspace component.")>
Public Property Workspace As ImagXpress
'Usage
 
Dim instance As ImageXView
Dim value As ImagXpress
 
instance.Workspace = value
 
value = instance.Workspace
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[DefaultValue()]
[Description("Gets or sets the ImagXpress workspace component.")]
public ImagXpress Workspace {get; set;}
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[DefaultValue()]
[Description("Gets or sets the ImagXpress workspace component.")]
public: __property ImagXpress* get_Workspace();
public: __property void set_Workspace( 
   ImagXpress* value
);
[Browsable(false)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[DefaultValue()]
[Description("Gets or sets the ImagXpress workspace component.")]
public:
property ImagXpress^ Workspace {
   ImagXpress^ get();
   void set (    ImagXpress^ value);
}

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.
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

Reference

ImageXView Class
ImageXView Members

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback