VintaSoft Imaging .NET SDK 14.0: Документация для Веб разработчика
Vintasoft.Imaging.Dicom Namespace / WebDicomViewerBaseControlJS type / get_TextOverlays Property
Syntax Example BrowserCompatibility SeeAlso
В этом разделе
    get_TextOverlays Метод
    В этом разделе
    Возвращает массив наложений DICOM.
    Синтаксис
    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

    Менеджер для наложений текста.
    Пример

     // 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();
    

    Совместимость с веб браузерами
    9
    5
    11
    5
    Смотрите также