AGI AgAttrAutomation 11 Send comments on this topic.
AddListDispatchProperty Method (IAgAttrBuilder)
See Also 
DispScope
The attribute container (scope) where the attribute will be added.
Name
Name of the attribute to add.
Description
Description of the attribute to add.
PropName
Name of the property to be called to set/get the value of this attribute. The property must be of the same type as that of the values in the list.
NewElemMethodName
Name of a method that will be called to create a new element. That method must take no argument and return an object supporting either the IAttrConfig interface or a late bound GetConfig property.
Flags
Bitwise combination of AgEAttrAddFlags flags.





Description

Add an Attribute that represents a list of values.

Syntax

[Visual Basic .NET]
Public Sub AddListDispatchProperty( _
   ByVal DispScope As Object, _
   ByVal Name As String, _
   ByVal Description As String, _
   ByVal PropName As String, _
   ByVal NewElemMethodName As String, _
   ByVal Flags As Integer _
) 

[C#]
public void AddListDispatchProperty(
Object DispScope,
string Name,
string Description,
string PropName,
string NewElemMethodName,
int Flags
);

[Managed C++]
public: void AddListDispatchProperty(
IUnknown ^ DispScope,
String __gc ^ Name,
String __gc ^ Description,
String __gc ^ PropName,
String __gc ^ NewElemMethodName,
int Flags
);

[Java]
public  addListDispatchProperty(
Object DispScope,
String Name,
String Description,
String PropName,
String NewElemMethodName,
int Flags
);

[Unmanaged C++]
public: HRESULT AddListDispatchProperty(
IUnknown * DispScope,
BSTR Name,
BSTR Description,
BSTR PropName,
BSTR NewElemMethodName,
long Flags
);

Parameters

DispScope
The attribute container (scope) where the attribute will be added.
Name
Name of the attribute to add.
Description
Description of the attribute to add.
PropName
Name of the property to be called to set/get the value of this attribute. The property must be of the same type as that of the values in the list.
NewElemMethodName
Name of a method that will be called to create a new element. That method must take no argument and return an object supporting either the IAttrConfig interface or a late bound GetConfig property.
Flags
Bitwise combination of AgEAttrAddFlags flags.

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1