 | ListAttributeCreateListAttribute Method |
Creates a new list attribute for an element which can have attributes.
Namespace: Aml.Engine.AmlObjectsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static AttributeType CreateListAttribute(
this IObjectWithAttributes element,
string attributeName,
int itemsCount,
string itemType,
string itemName = "item",
bool isOrderedList = false
)
<ExtensionAttribute>
Public Shared Function CreateListAttribute (
element As IObjectWithAttributes,
attributeName As String,
itemsCount As Integer,
itemType As String,
Optional itemName As String = "item",
Optional isOrderedList As Boolean = false
) As AttributeType
public:
[ExtensionAttribute]
static AttributeType^ CreateListAttribute(
IObjectWithAttributes^ element,
String^ attributeName,
int itemsCount,
String^ itemType,
String^ itemName = L"item",
bool isOrderedList = false
)
Parameters
- element IObjectWithAttributes
- The element.
- attributeName String
- Name of the new list attribute.
- itemsCount Int32
- The items count for initialization of the containing attribute items.
- itemType String
- Type of the item (unique for all items).
- itemName String (Optional)
-
Name of the item (ignored if an ordered list is created). When an item attribute
is created, the item Name gets the item index added to this name.
- isOrderedList Boolean (Optional)
- if set to true the list is an ordered list.
Return Value
AttributeTypeThe list AttributeType.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IObjectWithAttributes. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also