RuleMethod

Applies to:uCalc Transform
Class:uCalc.uCalcTransform
Returns a rule object from a transform
Syntax
Rule(Index)
Parameters
Index
Int32
(Default = 0)
Index of rule
Returns
Type: RuleClass
Returns a rule object from a transform
Remarks
The default rule is located at index -1. All subsequent rules inherent properties from the default rule.

If no argument is passed, then RuleClass returns the next empty new rule in the list.

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

Private Function Rule__(ByVal TransformHandle As IntPtr, ByVal Index As Int32  ) As IntPtr
End Function
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="Rule")]

protected static extern IntPtr Rule_(IntPtr TransformHandle,  Int32 Index  );
            
{DLLImport}function Rule__(TransformHandle: System.Pointer; Index: Int32): System.Pointer; cdecl; external uCalcDLL name 'Rule';

            
typedef uCalcPtr (* __Rule)(void *TransformHandle,  int32_t Index  ); 

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

static uCalcPtr Rule_(void *  TransformHandle,  Int32 Index);
            
Prev | Next