AntTweakBar.Tw.AddSeparator C# (CSharp) Method

AddSeparator() public static method

This function adds a horizontal separator line to a tweak bar. It may be useful if one wants to separate several sets of variables inside a same group.
public static AddSeparator ( IntPtr bar, String name, String def ) : void
bar System.IntPtr The tweak bar to which adding the separator.
name String The name of the separator. It is optional, this parameter can be set to NULL.
def String An optional definition string used to modify the behavior of this new entry.
return void
        public static void AddSeparator(IntPtr bar, String name, String def)
        {
            if (bar == IntPtr.Zero) {
                throw new ArgumentOutOfRangeException("bar");
            } else if (name == null) {
                throw new ArgumentNullException("name");
            }

            if (!NativeMethods.TwAddSeparator(bar, name, def)) {
                throw new AntTweakBarException("TwAddSeparator failed.");
            }
        }