AddAttribute Method (Component Object)

Scope: Schematic editor

Object: Component Object

Prerequisites: None

Adds an attribute to the component at the coordinates passed.

Usage

Component.AddAttribute(ByVal text As String, ByVal X As Long, ByVal Y As Long, ByVal Visibility As VdVisibilityFlag) As IVdAttr

Arguments

text

Attribute string of the form NAME=VALUE.

X

X coordinate of the attribute.

Y

Y coordinate of the attribute.

Visibility

The visibility of the attribute in the form VdVisibilityFlag Enum.

Return Values

As IVdAttr. The newly created Attribute Object.