LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
RasterSupport Class
See Also  Members  
Leadtools Namespace : RasterSupport Class



The RasterSupport class provides methods for unlocking support for optional LEADTOOLS features, such as LEADTOOLS Document/Medical capabilities. Supported in Silverlight, Windows Phone 7

Object Model

RasterSupport Class

Syntax

Visual Basic (Declaration) 
Public MustInherit NotInheritable Class RasterSupport 
Visual Basic (Usage)Copy Code
Dim instance As RasterSupport
C# 
public static class RasterSupport 
C++/CLI 
public ref class RasterSupport abstract sealed 

Example

This example will unlock Document support, but you must obtain the key from LEAD.

Visual BasicCopy Code
Public Sub UnlockDocumentSupportExample()
   ' Check if the support is locked now
   Dim isLocked As Boolean = RasterSupport.IsLocked(RasterSupportType.Document)
   If isLocked Then
      Console.WriteLine("Document support is locked")
   Else
      Console.WriteLine("Document support is unlocked")
   End If

   ' Unlock Document support. Document toolkit required. Note that "Document_key" must be obtained from LEAD.
   RasterSupport.Unlock(RasterSupportType.Document, "Document_key")

   If isLocked Then
      Console.WriteLine("Document support is locked")
   Else
      Console.WriteLine("Document support is unlocked")
   End If
End Sub
C#Copy Code
public void UnlockDocumentSupportExample()
{
   // Check if the support is locked now
   bool isLocked = RasterSupport.IsLocked(RasterSupportType.Document);
   if(isLocked)
      Console.WriteLine("Document support is locked");
   else
      Console.WriteLine("Document support is unlocked");

   // Unlock Document support. Document toolkit required. Note that "Document_key" must be obtained from LEAD.
   RasterSupport.Unlock(RasterSupportType.Document, "Document_key");

   if(isLocked)
      Console.WriteLine("Document support is locked");
   else
      Console.WriteLine("Document support is unlocked");
}
SilverlightCSharpCopy Code
[TestMethod]
public void UnlockDocumentSupportExample()
{
   // Check if the support is locked now
   bool isLocked = RasterSupport.IsLocked(RasterSupportType.Document);
   if(isLocked)
      Console.WriteLine("Document support is locked");
   else
      Console.WriteLine("Document support is unlocked");
   // Unlock Document support. Document toolkit required. Note that "Document_key" must be obtained from LEAD.
   RasterSupport.Unlock(RasterSupportType.Document, "Document_key");

   if(isLocked)
      Console.WriteLine("Document support is locked");
   else
      Console.WriteLine("Document support is unlocked");
}
SilverlightVBCopy Code
<TestMethod> _
Public Sub UnlockDocumentSupportExample()
   ' Check if the support is locked now
   Dim isLocked As Boolean = RasterSupport.IsLocked(RasterSupportType.Document)
   If isLocked Then
      Console.WriteLine("Document support is locked")
   Else
      Console.WriteLine("Document support is unlocked")
   End If
   ' Unlock Document support. Document toolkit required. Note that "Document_key" must be obtained from LEAD.
   RasterSupport.Unlock(RasterSupportType.Document, "Document_key")

   If isLocked Then
      Console.WriteLine("Document support is locked")
   Else
      Console.WriteLine("Document support is unlocked")
   End If
End Sub

Remarks

For more information, refer to Unlocking Special LEAD Features.

Inheritance Hierarchy

System.Object
   Leadtools.RasterSupport

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also