[]
        
(Showing Draft Content)

C1.BarCode.QuietZone.IsEmpty

IsEmpty Property

IsEmpty

Gets a value indicating whether the QuietZone is empty.

Declaration
public bool IsEmpty { get; }
Remarks
<xref href="C1.BarCode.QuietZone.Left" data-throw-if-not-resolved="false"></xref>, <xref href="C1.BarCode.QuietZone.Top" data-throw-if-not-resolved="false"></xref>, <xref href="C1.BarCode.QuietZone.Right" data-throw-if-not-resolved="false"></xref> and <xref href="C1.BarCode.QuietZone.Bottom" data-throw-if-not-resolved="false"></xref> properties

of the Empty QuietZone have values of 0.

Examples

This code returns new QuietZone if the specified value (_quietZone) is Empty.

public QuietZone GetQuietZone()
{
   if(!_quietZone.IsEmpty)
      return _quietZone;

   return new QuietZone(10, 10, 10, 10);
}