LAutomation::EditVectorObject
#include "ltwrappr.h"
L_INT LAutomation::EditVectorObject (pVectorObject);
L_INT LAutomation::EditVectorObject (pEditObject);
const pVECTOROBJECT pVectorObject; |
/* pointer to a structure */ |
LVectorObject * pEditObject; |
/* pointer to an LVectorObject object */ |
Edits the specified vector object.
Parameter |
Description |
pVectorObject |
Pointer to a VECTOROBJECT structure that specifies the vector object to edit. |
pEditObject |
Pointer to an LVectorObject class object that contains the vector object to edit. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Note: |
This function is only available in the vector toolkits. |
Starts editing an existing vector object.
Required DLLs and Libraries
LTAUT For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Functions: |
LAutomation::SetVectorProperty, LAutomation::GetVectorProperty |
Topics: |
Example
This example uses automation to edit a vector object under a given 2D point.
// LAutomation::EditVectorObject() L_INT LAutomation_EditVectorObjectExample(LVectorBase &Vector, LAutomation &Automation, LPPOINT pPoint) { LVectorObject MyObject; // Get object under that point L_INT nRet = Vector.HitTest (pPoint, &MyObject); if(nRet != SUCCESS) return nRet; nRet = Automation.EditVectorObject(&MyObject); if(nRet != SUCCESS) return nRet; return SUCCESS; }