AntTweakBar.Tw.Define C# (CSharp) Method

Define() public static method

This function defines optional parameters for tweak bars and variables. For instance, it allows you to change the color of a tweak bar, to set a min and a max value for a variable, to add an help message that inform users of the meaning of a variable, and so on...
public static Define ( String def ) : void
def String A string containing one or more parameter assignments (separated by newlines).
return void
        public static void Define(String def)
        {
            if (def == null) {
                throw new ArgumentNullException("def");
            }

            if (!NativeMethods.TwDefine(def)) {
                throw new AntTweakBarException("TwDefine failed.");
            }
        }