PropertiesMethod

Applies to:uCalc Transform
Class:uCalc
Combines properties into a numeric value that can be passed to GetItemOf
Syntax
Properties(p1, Opt p2, Opt p3, Opt p4)
Remarks
ItemIsEnum properties are numbered sequentially (0, 1, 2, 3, 4, ...) . However the Properties argument of the GetItemOf function requires properties in the 2^x sequence (1, 2, 4, 8, 16, ...) . So you must pass one or more ItemIsEnum to Properties before passing it to GetItemOf.

DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="Properties")> _

Private Function Properties__(ByVal uCalcHandle As IntPtr,ByVal p1 As ItemIsEnum,  ByVal p2 As ItemIsEnum ,  ByVal p3 As ItemIsEnum ,  ByVal p4 As ItemIsEnum ) As  Int64
End Function
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="Properties")]

protected static extern  Int64 Properties_(IntPtr uCalcHandle,ItemIsEnum p1,  ItemIsEnum p2 ,  ItemIsEnum p3 ,  ItemIsEnum p4 );
            
{DLLImport}function Properties__(uCalcHandle: System.Pointer;p1: ItemIsEnum;  p2: ItemIsEnum ;  p3: ItemIsEnum ;  p4: ItemIsEnum):  Int64; cdecl; external uCalcDLL name 'Properties';

            
typedef  int64_t (* __Properties)(void *uCalcHandle, ItemIsEnum p1,   ItemIsEnum p2 ,   ItemIsEnum p3 ,   ItemIsEnum p4 ); 

            
[DllImport(uCalcLib, CharSet=CharSet::Ansi, CallingConvention=CallingConvention::Cdecl, EntryPoint = "Properties")]

static Int64 Properties_(void *  uCalcHandle, ItemIsEnum p1,   ItemIsEnum p2 ,   ItemIsEnum p3 ,   ItemIsEnum p4);
            
Prev | Next