Removes a service object with the specified ID (the ID property) from the service object collection of the group/page, and returns the number of remaining service objects.
Applies to: Page object, Shape object
[[Let] countRet =] object.RemoveServObjByID ( servObjID ) |
The RemoveServObjByID method syntax has these parts:
Part | Description |
object | Required. An expression that returns an object in the Applies to list. |
servObjID | Required. An expression that returns a Long value. The ID (the ID property) of the service object to be deleted. |
countRet | Optional. A Long type variable |
If there is no service object with the specified servObjID, the RemoveServObjByID method doesn't delete anything and returns the current number of service objects in the group/page.
See Also |
ID property, RemoveAllServObjs method, RemoveServObj method, ReorderServObj method, ReorderServObjByID method, ServObj method, ServObjByID method, ServObjsNum method, ServObj object |