Click or drag to resize

ListAttributeCreateListAttribute Method

Creates a new list attribute for an element which can have attributes.

Namespace: Aml.Engine.AmlObjects
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static AttributeType CreateListAttribute(
	this IObjectWithAttributes element,
	string attributeName,
	int itemsCount,
	string itemType,
	string itemName = "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

AttributeType
The 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