Erases current barcode symbol in the TImage control that's specified by the Image property.
function Clear(UseSpaceColor: Boolean = false): Boolean; virtual;
The method erases the barcode symbol without erasing the background around it from the TImage control that's specified by the Image property.
If the quiet zones are displayed (the ShowQuietZone property is set to true), they are included in the barcode symbol and will be erased too. For the TBarcodeFmx2D_Code16K barcode components, the leading quiet zone and trailing quiet zone are included always, even if the ShowQuietZone property is set to false.
UseSpaceColor: Boolean; Specifies whether the space color that's specified by the SpaceColor property is used to erase the barcode symbol. If it's set to false, the current brush color of the TImage control will be used. If the parameter isn't provided, it's default to false.
If the method succeeds, the return value is true.
If you use the Barcode property to specify the barcode text, when the length of Barcode property value is invalid, or there is any invalid character in the Barcode property value, the return value is false. Corresponding to the OnInvalidLength event or the OnInvalidChar event will occur.
If you use the Data property to specify the barcode text, when the length of Data property value is invalid, or there is any invalid byte value in the Data property value, the return value is false. Corresponding to the OnInvalidDataLength event or the OnInvalidDataChar event will occur.