Visual Basic |
---|
Public Property InitialNewTextAnnotationTextStyle As Font |
The default value is 12-point Courier New.
Set this property in the Object/Embed tag or during the OnInitialize event.
The scope of this property depends on where it is set. For more information, see the Initial Property Scope topic.
Here is VBScript code snippit showing how to get, change, and set a text style using the Prizm Viewer scripting interface:
<SCRIPT language=VBscript>
<!--
...
Private Sub prizm_OnInitialize
...
Dim f
set f = prizm.InitialNewTextAnnotationTextStyle
f.Weight = 700
f.Name = "Freestyle Script"
f.Size = 24
set prizm.InitialNewTextAnnotationTextStyle = f
...
-->
</SCRIPT>
</HEAD>
<BODY>
...
<OBJECT ID="prizm" CLASSID="CLSID:7A2633F0-33D5-4F5E-93BE-74ACBEE7F7EA" height="200" width="500" >
</OBJECT>
...