Creates a new element type named 'eltTypeName' whose type is 'Type'.
[Visual Basic 6.0] Function CreateElementType(
ByVal eltTypeName As String, _
ByVal Type As esriNgElementTypeEnum, _
[ByVal Parent As INgElementType], _
[ByVal createGroup As Boolean] _
) As INgElementType
[Visual Basic .NET] Public Function CreateElementType ( _ ByVal eltTypeName As String, _ ByVal Type As esriNgElementTypeEnum, _ [ByVal Parent As INgElementType], _ [ByVal createGroup As Boolean] _ ) As INgElementType
[C#] public INgElementType CreateElementType ( string eltTypeName, esriNgElementTypeEnum Type, INgElementType Parent, bool createGroup );
Optional Values
[Java] public INgElementType createElementType ( String eltTypeName, esriNgElementTypeEnum Type, INgElementType Parent, Boolean createGroup ) throws IOException, AutomationException
[C++] HRESULT CreateElementType( BSTR eltTypeName, esriNgElementTypeEnum Type, INgElementType* Parent, VARIANT_BOOL createGroup, INgElementType** pVal );
Parameters
eltTypeName [in]
eltTypeName is a parameter of type BSTR
Type [in]
Type is a parameter of type esriNgElementTypeEnum
Parent [in, optional, defaultvalue(0)]
Parent is a parameter of type INgElementType
createGroup [in, optional, defaultvalue(VARIANT_TRUE)]
createGroup is a parameter of type VARIANT_BOOL
pVal [out, retval]
pVal is a parameter of type INgElementType
This element type can inherit the ‘parent’ element type (optional parameter). The createGroup parameter specifies if the associated element group must be created or not. The default value for the createGroup parameter is True; that is by default, all newly created element type is directly related to its own graphic group.
INgProjectBuilder Interface | INgProject.ElementTypes Property