VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.Dicom Namespace / WebDicomViewerBaseControlJS type / get_TextOverlays Property
Syntax Example BrowserCompatibility SeeAlso
In This Topic
    get_TextOverlays Method
    In This Topic
    Gets an array of DICOM overlays.
    Syntax
    var instance = new Vintasoft.Imaging.Dicom.WebDicomViewerBaseControlJS(parentDiv);
    
    var value; // Type: Vintasoft.Imaging.Dicom.WebDicomTextOverlayCollectionJS
    value = instance.get_TextOverlays();
    
    
    function get_TextOverlays() : WebDicomTextOverlayCollectionJS;
    

    Return Value

    Manager for text overlays.
    Example

     // variable "dicomControl" is an instance of Vintasoft.Imaging.Dicom.WebDicomControlJS class.
     
     // get DICOM viewer that is used in DICOM control
     var dicomViewerControl = dicomControl.get_DicomViewerControl();
     
     // create anchor that defines position of text overlay
     var anchor = new Vintasoft.Imaging.Primitives.WebAnchorTypeEnumJS("Top");
     
     // create text overlay
     var textOverlay = new Vintasoft.Imaging.Dicom.WebDicomTextOverlayJS(anchor);
     
     // set text for text overlay
     textOverlay.set_Text("Test");
     
     // get the text overlay collection that is used by DICOM viewer
     var textOverlayCollection = dicomViewerControl.get_TextOverlays();
     // add text overlay to the text overlay collection
     textOverlayCollection.add(textOverlay);
     
     // redraw DICOM viewer
     dicomViewerControl.update();
    

    Browser Compatibility
    56+
    45+
    11
    See Also