Spread Windows Forms 6.0 Product Documentation
SetNull Method
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : SetNull Method


Glossary Item Box

Sets the contents of the control to the null value.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub SetNull() 
Visual Basic (Usage)Copy Code
Dim instance As SuperEditBase
 
instance.SetNull()
C# 
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:

  • Press F2.
  • Delete the contents of the control.
  • Call the SetNull method method.
  • Call the ClearAll method.
  • Select the contents of the control and call the Clear method.

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

C#Copy Code
control.AllowNull = true;
control.SetNull();
Visual BasicCopy Code
control.AllowNull = True
control.SetNull()

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.