API Documentation > Interface Classes > Class wfcElement
Class wfcElement

# include <wfcElementTree.h>

class
wfcElement
: public virtual
xobject
{
xdeclare(wfcElement)
...
};
This is a
COMPACT class.

Description
Manual References:
Method Summary
Creates a new wfcElement object.
An array of child elements.
void
A list of the element diagnostics for the element.
void
The wfcCollection object.
void
SetId (xint value)
Identifier of the Element.
String representation of element Id.
Determines whether the specified element contains an array of elements.
Determines whether the specified element is compound.
Determines whether the specified element is multivalued.
void
SetLevel (xint value)
The level at which the element is located in the element tree with respect to the root element.
void
void
The special value element.
void
Value of the element.
void
String representation of value of double and integer elements. You must set compatible options using wfcElementWstringOption object
Method Detail
GetValue
()
void
SetValue
Value of the element.
Manual References:
GetId
()
void
SetId
(xint value)
Identifier of the Element.
Manual References:
GetLevel
()
void
SetLevel
(xint value)
The level at which the element is located in the element tree with respect to the root element.
Manual References:
GetDecimals
()
void
SetDecimals
(optional xint value)
Manual References:
GetSpecialValueElem
()
void
SetSpecialValueElem
The special value element.
Manual References:
GetElemCollection
()
void
SetElemCollection
The wfcCollection object.
This will be populated only if the element is a collection.
Manual References:
GetSelections
()
void
SetSelections
A list of the element diagnostics for the element.
These contain warnings and errors regarding the value of the element, within the context of the feature and remainder of the element tree.
Manual References:
GetValueAsString
()
void
SetValueAsString
(optional xrstring value)
String representation of value of double and integer elements. You must set compatible options using wfcElementWstringOption object
Manual References:
GetIdAsString
()
String representation of element Id.
Manual References:
GetIsArray
()
Determines whether the specified element contains an array of elements.
Manual References:
GetIsCompound
()
Determines whether the specified element is compound.
Manual References:
GetIsMultival
()
Determines whether the specified element is multivalued.
Manual References:
GetChildren
()
An array of child elements.
This will be populated only if the element is a compound element or an array.
Manual References:
Create
(xint Id, optional pfcArgValue_ptr Value, xint Level)
Creates a new wfcElement object.
See Also:
Manual References:
Parameters:
Id
Identifier of the element.
To define the Feature Element Id, use values described in Creo Parametric TOOLKIT headers.
Value
Value of the element.
For Compound and Array elements pass null.
For Collection elements pass null value and then use method SetElemCollection()
For all other elements depending upon type use methods described in the section See Also
Level
Level at which the element is located in the element tree with respect to the root element. Level starts from 0.
Returns:
Was this helpful?