| Visual Basic (Declaration) | |
|---|---|
Public Overridable Sub ClearAll() | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public virtual void ClearAll() | |
| C# | Copy Code |
|---|---|
control.ClearAll(); | |
| Visual Basic | Copy Code |
|---|---|
control.ClearAll() | |
This method does not have an effect if the control's AllowNull property is set to false.
To just remove the current selection, instead of the entire contents, call the Clear method.