Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
RasterSupport Class
See Also  Members   Example 
Leadtools Namespace : RasterSupport Class



The RasterSupport class provides methods for unlocking support for optional LEADTOOLS features, such as LEADTOOLS Document/Medical capabilities.

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"); 
}

Remarks

For more information, refer to Unlocking Special LEAD Features.

Inheritance Hierarchy

System.Object
   Leadtools.RasterSupport

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also