WinUI | ComponentOne
C1.WinUI.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
    public bool IsEmpty {get;}
    Remarks
    Left, Top, Right and 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