Sets or returns the value of the right margin in inches. This is the space between the worksheet data and the right edge of the printed page. This is set to.75 by default. The valid range of values is 0 through 100, and is also limited by paper size.

public double RightMargin{ get; set; }
Public Property RightMargin() As Double
          //--- Get RightMargin
          double rghtMargin = ps.RightMargin;

          //--- Set RightMargin
          ps.RightMargin = 1;
        
          '--- Get RightMargin
          Dim rghtMargin As Double = ps.RightMargin

          '--- Set RightMargin
          ps.RightMargin = 1