IPCsText


Topic:

Properties and methods of IPCsText


[+] IPCsText

Class hierarchy:

IPCsApplication IPCsDocument IPCsPage IPCsTexts IPCsText
IPCsApplication IPCsDocument IPCsPage IPCsSymbol IPCsSymbolTexts IPCsText
IPCsApplication IPCsDocument IPCsPage IPCsSymbol IPCsConnection IPCsConnectionTexts IPCsText
IPCsApplication IPCsDocument IPCsPage IPCsLine IPCsLineTexts IPCsText
IPCsApplication IPCsDocument IPCsSelectStatus SelectedText
IPCsApplication IPCsDocument IPCsSelectStatus IPCsSelectionArea IPCsTexts IPCsText


Properties / Methods:

GetRect Used for getting coordinates from where the text is placed on the diagram. Parameters needed: a psTextRectFlags . Returns a TPCsRect
Syntax:
function GetRect(AFlags: psTextRectFlags): TPCsRect;
Delete Deletes the text
Value The caption
Origin Alignment of the Value-property. more on this psTextOrigin
Font The fontoptions. See more about IPCsTextFont
FieldWidth Specifices the width of the Value-text. Used with WrapText-property to make text break to more lines, at a specified length
WrapText If true, the Value-text, will break into more lines, each with a length of FieldWidth-property
Color Property that takes a psPenColor as value
Layer See more IPCsLayer
Rotation Set the orientation/rotation of the text. Use values in range from 0-3600.
0 = right, 900 = up, 1800 = left, 2700 = down, 3600 = right.
All directions goes from the position (GetPosition) of the text.
GetPosition Gets x,y,z from a text. Parameters needed: 3 integers
Syntax:
procedure GetPosition(out X: Integer; out Y: Integer; out Z: Integer);
SetPosition Sets x,y,z on a text. Parameters needed: 3 integers
Syntax:
procedure SetPosition(X: Integer; Y: Integer; Z: Integer);
Handle A unique handle to the text



[+] IPCsText2

Class hierarchy:

IPCsApplication IPCsDocument IPCsPage IPCsTexts IPCsText2
IPCsApplication IPCsDocument IPCsPage IPCsSymbol IPCsSymbolTexts IPCsText2
IPCsApplication IPCsDocument IPCsPage IPCsSymbol IPCsConnection IPCsConnectionTexts IPCsText2
IPCsApplication IPCsDocument IPCsPage IPCsLine IPCsLineTexts IPCsText2
IPCsApplication IPCsDocument IPCsSelectStatus SelectedText
IPCsApplication IPCsDocument IPCsSelectStatus IPCsSelectionArea IPCsTexts IPCsText2


Properties / Methods:

RGBColor Property of type integer, that indicates the color in 24 bit (16.7 mill. colors)



Comments:

Use Texts.Item[interger] and Texts.Count to get that/these items you want.
IPCsTexts gives access to all texts on a page through Item[integer].
IPCsText is a text symbol, (which can be selected through IPCsTexts.Item[integer])