Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, May 15, 2020 4:59:13 AM(UTC)
devinzhu

Groups: Registered
Posts: 21


Hello, when developing Web Medical Viewer using LeadTools HTML5 Medical SDK, there's default text which is "LEADTOOLS" when drawingText and TextPointer annotation in MedicalViewer Cell(see attached screenshot), is there any function to change the text?
ann.png
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, May 19, 2020 9:04:32 AM(UTC)
Matthew Bresson

Groups: Registered, Tech Support, Administrators
Posts: 98

Was thanked: 3 time(s) in 3 post(s)

Hello,

Yes, you can use the objectTemplate property to set the initial annotation object template of the specified AnnAutomationObject.
https://www.leadtools.co...ject-objecttemplate.html

Here is some sample code:
Code:

//
// Create the object template for it, use the default stroke and fill
//
var textObject: lt.Annotations.Engine.AnnTextObject = new lt.Annotations.Engine.AnnTextObject();


textObject.fill = lt.Annotations.Engine.AnnSolidColorBrush.create(scope.config.backgroundColor);
// Set the default text
textObject.text = "";
textObject.stroke = lt.Annotations.Engine.AnnStroke.create(lt.Annotations.Engine.AnnSolidColorBrush.create(scope.config.borderColor), 
                                                           lt.LeadLengthD.create(scope.config.borderSize));

automationObject.set_objectTemplate(textObject);
automationObjects.add(automationObject);


The AnnTextObject and the AnnTextPointerObject have text properties. These properties allow you to get or set the text read inside the annotation object. The AnnTextPointerObject inherits the text property from the AnnTextObject.
https://www.leadtools.co.../anntextobject-text.html

If you have any further questions about the above process please feel free to reach back out to us.

Thanks
Matt Bresson
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.150 seconds.