Type Default Value Read Only Description
Double 10.0 No The current text size.




This property determines the size of text that is added to the document using methods like AddText.

The Size property is equivalent to the the Doc.FontSize property, but unlike the FontSize property, it allows fractional point sizes to be specified.

The font size is measured in units.




The following example adds two blocks of styled text to a document. The first block is in 96.5 point type and the second is in 192.5 point type.

Set theDoc = Server.CreateObject("ABCpdf12.Doc")
theDoc.TextStyle.Size = 96.5
theDoc.AddText "Small "
theDoc.TextStyle.Size = 192.5
theDoc.AddText "Big"
theDoc.Save "c:\mypdfs\stylesize.pdf"