VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI Namespace / WebAnnotationPenJS type / set_EndCap Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
In This Topic
    set_EndCap Method
    In This Topic
    Sets the cap style used at the end of lines drawn with the pen.
    Syntax
    var instance = new Vintasoft.Imaging.Annotation.UI.WebAnnotationPenJS(width, color, lineJoin, miterLimit, dashStyle, dashPattern, startCap, endCap);
    
    var returnValue; // Type: any
    
    // Parameters
    var value; // Type: WebLineCapJS
    
    returnValue = instance.set_EndCap(value);
    
    
    function set_EndCap(
    value
    An instance of WebLineCapJS class that defines style of line cap.
    : WebLineCapJS
    ) : any;

    Parameters

    value
    An instance of WebLineCapJS class that defines style of line cap.
    Exceptions
    ExceptionDescription
    Thrown if argument has wrong type.
    Example

     // change the end cap of WebAnnotationPenJS object
     outline.set_EndCap(new WebLineCapJS("Arrow", {width:30, height:30}));
    

    Browser Compatibility
    56+
    45+
    11
    See Also