AGI AgAttrAutomation 11 Send comments on this topic.
AddQuantityMinMaxDispatchProperty 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 values of this attribute. The property must be of the type quantity (as double).
DisplayUnit
Default display units (used in the User Interface).
InternalUnit
Unit used to set/get the PropName property.
MinVal
Minimum value allowed (as double).
MaxVal
Maximum value allowed (as double).
Flags
Bitwise combination of AgEAttrAddFlags flags.





Description

Add an Attribute of type quantity to the Attribute Scope. Deprecated, use AddQuantityMinMaxDispatchProperty2 instead.

Syntax

[Visual Basic .NET]
Public Sub AddQuantityMinMaxDispatchProperty( _
   ByVal DispScope As Object, _
   ByVal Name As String, _
   ByVal Description As String, _
   ByVal PropName As String, _
   ByVal DisplayUnit As String, _
   ByVal InternalUnit As String, _
   ByVal MinVal As Double, _
   ByVal MaxVal As Double, _
   ByVal Flags As Integer _
) 

[C#]
public void AddQuantityMinMaxDispatchProperty(
Object DispScope,
string Name,
string Description,
string PropName,
string DisplayUnit,
string InternalUnit,
double MinVal,
double MaxVal,
int Flags
);

[Managed C++]
public: void AddQuantityMinMaxDispatchProperty(
IUnknown ^ DispScope,
String __gc ^ Name,
String __gc ^ Description,
String __gc ^ PropName,
String __gc ^ DisplayUnit,
String __gc ^ InternalUnit,
double MinVal,
double MaxVal,
int Flags
);

[Java]
public  addQuantityMinMaxDispatchProperty(
Object DispScope,
String Name,
String Description,
String PropName,
String DisplayUnit,
String InternalUnit,
double MinVal,
double MaxVal,
int Flags
);

[Unmanaged C++]
public: HRESULT AddQuantityMinMaxDispatchProperty(
IUnknown * DispScope,
BSTR Name,
BSTR Description,
BSTR PropName,
BSTR DisplayUnit,
BSTR InternalUnit,
double MinVal,
double MaxVal,
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 values of this attribute. The property must be of the type quantity (as double).
DisplayUnit
Default display units (used in the User Interface).
InternalUnit
Unit used to set/get the PropName property.
MinVal
Minimum value allowed (as double).
MaxVal
Maximum value allowed (as double).
Flags
Bitwise combination of AgEAttrAddFlags flags.

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1