Returns absolute rectangle of the edited item.
Methods
EditItemAbsoluteRectGet
This method is called when some CG event occurs.
Syntax
EditItemAbsoluteRectGet(
string _bsItemID,
out tagRECT _prcItemRect
)
Parameters
_bsItemID - ID of the edited item
_prcItemRect - rectangle for the edited item
EditItemAbsoluteRectSet
This method is called when some CG event occurs.
Syntax
EditItemAbsoluteRectSet(
string _bsItemID,
ref tagRECT _prcItemRect
)
Parameters
_bsItemID - ID of the edited item
_prcItemRect - item rectangle to be set
EditItemGetByPoint
Returns item ID by point. It is used for example in mouse click event in CG editor.
Syntax
EditItemGetByPoint(
string _bsGroupID,
int _nPosX,
int _nPosY,
out string _pbsItemID
)
Parameters
_bsGroupID - ID of the edited group
_nPosX - horizontal position of the point
_nPosY - vertical position of the point
_pbsItemID - ID of the selected item
EditItemsGetByRect
Gets a set of items' IDs in a selected rectangle.
Syntax
EditItemsGetByRect(
string _bsGroupID,
int _nLeft,
int _nTop,
int _nRight,
int _nBottom,
out string _pbsItemsIDs
)
Parameters
_bsGroupID - edited group ID
_nLeft - left position of the selected rectangle
_nTop - top position of the selected rectangle
_nRight - right position of the selected rectangle
_nBottom - bottom position of the selected rectangle
_pbsItemsIDs - list of items' IDs
EditSelectionAdd
Adds item into a selection.
Syntax
EditSelectionAdd(
string _bsItemID,
string _bsColor,
int _bClearSel
)
Parameters
_bsItemID - item ID
_bsColor - selection color
_bClearSel - indicates whether a previous selection will be cleared
EditSelectionGetByIndex
Gets a selected item from the selection by item index.
Syntax
EditSelectionGetByIndex(
int _nIndex,
out string _pbsItemID,
out string _pbsColor
)
Parameters
_nIndex - item index
_pbsItemID - item ID
_pbsColor - selection color for the item
EditSelectionGetCount
Gets count of the selected items.
Syntax
EditSelectionGetCount(
out int _pnSelCount
)
Parameters
_pnSelCount - number of a selected items
EditSelectionRemove
Deselects the item.
Syntax
EditSelectionRemove(
string _bsItemID
)
Parameters
_bsItemID - item ID