|
GLG Toolkit, C# Class Library
Version 4.6
|
Functions | |
| virtual bool | ConstrainObject (GlgObject from_attribute, GlgObject to_attribute) |
| Constrains an attribute or a point of the object to an attribute or a point of another object. More... | |
| virtual bool | ContainsObject (GlgObject container, Object object) |
| Checks if object belongs to the container. More... | |
| virtual Object | GetElement (GlgObject container, int index) |
| Returns element at the specified position in the container. More... | |
| virtual int | GetIndex (GlgObject container, Object object) |
| Returns index of the first occurrence of an object in the container. More... | |
| virtual GlgObject | GetNamedObject (GlgObject container, String name) |
| Finds an object with the specified name inside the container of GLG objects and returns it. More... | |
| virtual int | GetNumParents (GlgObject glg_object) |
| ADVANCED: Returns number of the object's parents. More... | |
| virtual GlgObject | GetParent (GlgObject glg_object) |
| ADVANCED: Returns an object's parent object, if one exists., or an array of all parents for constrained data objects. More... | |
| virtual Object | GetResource (GlgObject glg_object, String resource_name) |
| Deprecated, use GetNativeComponent: Returns an ID of a native resource. More... | |
| virtual GlgObject | GetResourceObject (GlgObject glg_object, String resource_name) |
| Finds and returns a named resource or an attribute of the object. More... | |
| virtual int | GetSize (GlgObject container) |
| Returns size of the container object. More... | |
| virtual void | Inverse (GlgObject container) |
| Inverses the order of elements inside the container object. More... | |
| virtual Object | Iterate (GlgObject container) |
| Traverses the container object's elements in the forward direction. More... | |
| virtual Object | IterateBack (GlgObject container) |
| Traverses the container object's elements in the backward direction. More... | |
| virtual void | ReleaseObject (GlgObject glg_object, GlgObject suspend_info) |
| Releases the object that was suspended for editing. More... | |
| virtual bool | ReorderElement (GlgObject container, int old_index, int new_index) |
| Changes an element's position inside the container. More... | |
| virtual bool | SaveObject (GlgObject glg_object, String filename) |
| Saves the object to a file using a default encoding. More... | |
| virtual bool | SaveObject (GlgObject glg_object, String filename, Encoding encoding) |
| Saves an object into a file using the specified charset. More... | |
| virtual void | SetEnd (GlgObject container) |
| Initializes the container object for the backward traversing. More... | |
| virtual void | SetStart (GlgObject container) |
| Initializes the container object for the forward traversing. More... | |
| virtual GlgObject | SuspendObject (GlgObject glg_object) |
| Suspends the object for editing after it has been drawn. More... | |
| virtual bool | UnconstrainObject (GlgObject glg_object) |
| Unconstrains an object's attribute or an object's point. More... | |
Constrains an attribute or a point of the object to an attribute or a point of another object.
| from_attribute | The attribute or point object to be constrained. |
| to_attribute | The attribute or the point to constrain to. |
This method invokes the corresponding method of the GlgObject class. See ConstrainObject for more information.
|
virtual |
|
virtual |
Returns element at the specified position in the container.
| container | A container object. |
| index | The element's position inside the container. |
This method invokes the corresponding method of the GlgObject class. See GetElement for more information.
|
virtual |
|
virtual |
ADVANCED: Returns number of the object's parents.
This method is used to determine the type of the return value of the GetParent method and must be called after the hierarchy is created.
For constrained objects, the method returns a number greater than 1.
| glg_object | An object to query. |
This method invokes the corresponding method of the GlgObject class.
ADVANCED: Returns an object's parent object, if one exists., or an array of all parents for constrained data objects.
| glg_object | An object to query. |
This method invokes the corresponding method of the GlgObject class. See GetParent for more information.
|
virtual |
Deprecated, use GetNativeComponent:
Returns an ID of a native resource.
| glg_object | The object to be queried. |
| resource_name | Specifies the resource path of a native resource. |
This method was used in previous releases to get IDs of native objects used to render the viewport's drawing.
The method is deprecated, use GetNativeComponent.
Finds and returns a named resource or an attribute of the object.
| glg_object | The parent object whose resources are queried. |
| resource_name | A resource path to access the resource object inside the object the method is invoked on. It may use object names or default attribute names. |
This method invokes the corresponding method of the GlgObject class. See GetResourceObject for more information.
|
virtual |
Returns size of the container object.
For a viewport or group object, the size is the number of objects in the viewport or group. For a polygon, the size is the number of vertices.
| container | A container object. |
While the method provides the Intermediate API functionality, it is also available in the Standard API when used with a group object returned by CreateTagList.
This method invokes the corresponding method of the GlgObject class.
|
virtual |
|
virtual |
|
virtual |
Traverses the container object's elements in the backward direction.
| container | A container object. |
This method invokes the corresponding method of the GlgObject class. See IterateBack for more information.
Releases the object that was suspended for editing.
| glg_object | The suspended object to be released. |
| suspend_info | Suspension information returned by the previous call to SuspendObject. |
This method releases previously suspended object and is intended to be used only in conjunction with the SuspendObject method.
This method invokes the corresponding method of the GlgObject class.
|
virtual |
Changes an element's position inside the container.
| container | A container object. |
| old_index | The index of an element to be reordered. |
| new_index | A new element position. |
This method moves the element at the old_index to the new_index position inside the container. It generates an error message and returns false if indexes are out of range.
This method invokes the corresponding method of the GlgObject class.
|
virtual |
Saves the object to a file using a default encoding.
| filename | The file to save the object to. |
| glg_object | The object to save. |
This method invokes the corresponding method of the GlgObject class. See SaveObject for more information.
|
virtual |
Saves an object into a file using the specified charset.
| filename | The file to save the object to. |
| glg_object | The object to save. |
| encoding | Encoding for string encoding. |
This method invokes the corresponding method of the GlgObject class. See SaveObject for more information.
|
virtual |
Initializes the container object for the backward traversing.
The method sets the current position pointer past the last element of the container, preparing the container object for the backward traversing with IterateBack.
| container | A container object. |
This method invokes the corresponding method of the GlgObject class.
|
virtual |
Initializes the container object for the forward traversing.
The method sets the current position pointer before the first element of the container, preparing the container object for the forward traversing with Iterate.
| container | A container object. |
This method invokes the corresponding method of the GlgObject class.
Suspends the object for editing after it has been drawn.
| glg_object | An object to be suspended. |
This method invokes the corresponding method of the GlgObject class. See SuspendObject for more information.
|
virtual |
Unconstrains an object's attribute or an object's point.
| glg_object | The attribute or point object to be unconstrained. |
This method invokes the corresponding method of the GlgObject class. See UnconstrainObject for more information.