VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.UI.VisualTools Namespace / WebVisualToolFabricJS type / createToolById Property
Syntax Exceptions BrowserCompatibility SeeAlso
In This Topic
    createToolById Method
    In This Topic
    Creates visual tool by ID of the visual tool type.
    Syntax
    var instance = new Vintasoft.Imaging.UI.VisualTools.WebVisualToolFabricJS();
    
    var value; // Type: Vintasoft.Imaging.UI.VisualTools.WebVisualToolJS
    
    // Parameters
    var id; // Type: string
    
    value = instance.createToolById(id);
    
    
    function createToolById(
    id
    The ID of the visual tool type.
    : string
    ) : WebVisualToolJS;

    Parameters

    id
    The ID of the visual tool type.

    Return Value

    An instance of WebVisualToolJS class.
    Exceptions
    ExceptionDescription
    Thrown if WebVisualToolJS element with specified ID is not found.
    Thrown if factory created an instance, which is not derived from WebVisualToolJS class.
    Browser Compatibility
    56+
    45+
    11
    See Also