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 |
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 Basic |
Copy Code |
Public Sub UnlockDocumentSupportExample() 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
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
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also