IAttributeSetAttribute(IAttributeElement, IObject, Boolean) Method
Set attribute of parent object, if it is a float attribute the value must be in depending unit! E.g. "comp_height" use Inch and "spo_s_val" mils.
Namespace: PCBI.AutomationAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public static bool SetAttribute(
IAttributeElement Attribute,
IObject Parent,
bool FireEvent
)
Public Shared Function SetAttribute (
Attribute As IAttributeElement,
Parent As IObject,
FireEvent As Boolean
) As Boolean
public:
static bool SetAttribute(
IAttributeElement^ Attribute,
IObject^ Parent,
bool FireEvent
)
static member SetAttribute :
Attribute : IAttributeElement *
Parent : IObject *
FireEvent : bool -> bool
- Attribute IAttributeElement
- The attribute element with checked value.
- Parent IObject
- The object to add the attribute (IODBObject or ICMPObject).
- FireEvent Boolean
- Fire AttributeAddedOrChanged Event
BooleanTrue if the attribute can be added.