VintaSoft Imaging .NET SDK 12.4: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI Namespace / WebAnnotationPenJS type / set_StartCap Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
In This Topic
    set_StartCap Method
    In This Topic
    Sets the cap style used at the beginning 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_StartCap(value);
    
    
    function set_StartCap(
    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 start cap of WebAnnotationPenJS object
     outline.set_StartCap(new WebLineCapJS("Arrow", {width:30, height:30}));
    

    Browser Compatibility
    56+
    45+
    11
    See Also