Accusoft.FSInvoices1.Net - Updated
Weight Property




Accusoft.FSInvoices Namespace > RuleDefinition Class : Weight Property
Gets and sets the weight of the rule.
Syntax
'Declaration
 
Public Property Weight As Integer
'Usage
 
Dim instance As RuleDefinition
Dim value As Integer
 
instance.Weight = value
 
value = instance.Weight
public int Weight {get; set;}
public: __property int get_Weight();
public: __property void set_Weight( 
   int value
);
public:
property int Weight {
   int get();
   void set (    int value);
}
Exceptions
ExceptionDescription
Thrown when setting to a value less than -100 or greater than 100.
Remarks

Useful when using multiple rules of varying importance. Rules that are more important should be assigned a higher weight. A weight of zero will cause the rule to have no effect.

Default: 10.

See Also

Reference

RuleDefinition Class
RuleDefinition Members