Previous Document Next Document
PageSize.BuiltIn

Property BuiltIn As Boolean

Member of PageSize

The BuiltIn property returns True if the type of the paper is predefined.

The BuiltIn property returns a read-only value.

The following code example displays the names of all of the page sizes, and their width and height, if the paper type is predefined:

Sub Test() 
 Dim ps As PageSizes 
 Dim d As Document 
 Dim p As PageSize 
 Dim st As String 
 Dim s As Shape 
 Set d = CreateDocument 
 Set ps = d.PageSizes 
 For Each p In ps 
  If p.BuiltIn Then 
   st = st & p.Name & "(" & p.Width & " X " & p.Height & ")" & vbCr 
  End If 
 Next p 
 Set s = d.ActiveLayer.CreateParagraphText(8.5, 11, 0, 0, st) 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.