IPCsBasePageRef ![]() |
Properties and methods of IPCsBasePageRef 
IPCsApplication
IPCsDocument
IPCsPage
IPCsPageReference
IPCsBasePageRef 
Active ![]() | Controls if the referencesystem is active |
StringFirstReference ![]() | Access the startvalue |
Position ![]() | Access the X and Y positions. Type is TPCsPoint2D |
ReferenceSymbolPosition ![]() | Access the position of the reference symbol |
Spacing ![]() | Access the spacing. This property must be accessed in a special way:
var PCsApplication: IPCsApplication; TheSpace, OleResult : OleVariant; // Use an IPCsPage an parse it as IPCsBase. In this example the currently active page is used. (PCsApplication.ActiveDocument.ActivePage as IPCsBase).CustomCommand('GetPageRefXSpacing', 0, TheSpace); // TheSpace now contains the Horizontal spacingvalue. Type cast it to Integer(TheSpace) or String(TheSpace) (PCsApplication.ActiveDocument.ActivePage as IPCsBase).CustomCommand('SetPageRefXSpacing', 45000, OleResult); // Sets the Horizontal spacingvalue to 45,000 (PCsApplication.ActiveDocument.ActivePage as IPCsBase).CustomCommand('GetPageRefYSpacing', 0, TheSpace); // TheSpace now contains the Vertical spacingvalue. Type cast it to Integer(TheSpace) or String(TheSpace) (PCsApplication.ActiveDocument.ActivePage as IPCsBase).CustomCommand('SetPageRefYSpacing', 42500, OleResult); // Sets the Vertical spacingvalue to 42,500 |
Get or set values to the reference system setup. Notice that both HorisontalReference and VerticalReference (accessed from IPCsPageReference
), are of the same type IPCsBasePageRef