Spread Windows Forms 11.0 Product Documentation
SetNull Method
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : SetNull Method
Sets the contents of the control to the null value.
Syntax
'Declaration
 
Public Overridable Sub SetNull() 
'Usage
 
Dim instance As SuperEditBase
 
instance.SetNull()
public virtual void SetNull()
Remarks

When the AllowNull property is set to true, the control accepts null values, and the user can provide a null value in the following ways:

The AllowNull property must be set to true for the SetNull method to work correctly.

Call the IsNull method to determine whether a control contains the null value. Set the NullColor property to specify the background color the control displays when it contains the null value.

Example
control.AllowNull = true;
control.SetNull();
control.AllowNull = True
control.SetNull()
See Also

Reference

SuperEditBase Class
SuperEditBase Members
AllowNull Property
IsNull Method
NullColor Property
Text Property