BarCode for WPF | ComponentOne
C1.WPF.BarCode Assembly / C1.BarCode Namespace / QuietZone Class / IsEmpty Property
Example

In This Topic
    IsEmpty Property (QuietZone)
    In This Topic
    Gets a value indicating whether the QuietZone is empty.
    Syntax
    'Declaration
     
    Public ReadOnly Property IsEmpty As Boolean
    public bool IsEmpty {get;}
    Remarks
    QuietZone.Left, QuietZone.Top, QuietZone.Right and QuietZone.Bottom properties of the Empty QuietZone have values of 0.
    Example
    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);
    }
    See Also