The ServObj object describes properties of a ConceptDraw service object - such as a guide line. By using properties of ServObj, you can change the angle of the guide, position of its rotation center, name and description, find out to which group, document or page this service object belongs, etc.
Angle | The angle to which the service object (guide) is rotated with respect to its rotation center. |
Desc | A brief description of the service object. |
Document | Read-only. The document, which contains the service object. |
GPinX | The X coordinate of the service object's rotation center in the global coordinate system - that is, in the coordinate system of its parent group/page. |
GPinY | The Y coordinate of the service object's rotation center in the global coordinate system - that is, in the coordinate system of its parent group/page. |
ID | Read-only. The service object ID. |
Layer | The layer on which the service object lies. |
Name | The name of the service object. |
ObjType | Read-only. The service object type. |
Page | Read-only. The page, which contains the service object. |
Parent | Read-only. The parent group of the service object. |
SubID | Read-only. The ID of the service object inside its parent shape (group). |
Equal | Copies all properties and contents of the specified service object to this service object. |
Service objects can be located inside a group or by themselves on a ConceptDraw document page. Each page and group of a ConceptDraw document contain their own collections of service objects and have corresponding methods for working with service objects. An instance of the ServObj object can be retrieved by using the following methods of the Page and Shape objects: ServObj method, ServObjByID method.
To draw a new guide on a page or in a group you can use the DrawGuide method.
See Also |
Document object, Page object, Shape object |