How to add the <VIEW IDENTIFIER> by API?

How to add the <VIEW IDENTIFIER> by API?

Dai_Tech
Enthusiast Enthusiast
284 Views
1 Reply
Message 1 of 2

How to add the <VIEW IDENTIFIER> by API?

Dai_Tech
Enthusiast
Enthusiast

Hello everyone,

I want to add the <View Identifier> for text, lable,...same below picture!

Dai_Tech_0-1722481714308.png

Now, I am using oView.Label.FormattedText =  oView.Name

0 Likes
Accepted solutions (1)
285 Views
1 Reply
Reply (1)
Message 2 of 2

Michael.Navara
Advisor
Advisor
Accepted solution

You need to set FormattedText property of DrawingView object.

See this article for more information what and how you can use in FormattedText property.

 

Dim drw As DrawingDocument = ThisDoc.Document
Dim drwView As DrawingView = drw.ActiveSheet.DrawingViews(1)

drwView.Label.FormattedText = "<DrawingViewName/> ( <DrawingViewScale/> )"

 

 

0 Likes