title: How do you write a property so that you can access inner variables?
body: <p>I have a property enclosing a rectangle I have called it Window.
  when I try to use the property to change the location or "X" value of the rectangle, I get an error: "Can not modify the return value of Window because it is not a variable."</p>
  
  <p>Now I know I can just directly access the variable, but I would prefer to be able just modify the "X" value. I also don't want to be creating a new rectangle every time I modify it.</p>
  
  <p>So is there something I can add to my property that will let me modify the X value through the property?</p>
  
  <p>This is where I am trying to use the property:</p>
  
  <pre><code>Window.X -= amount;
  </code></pre>
  
  <p>This is where I have the proprty:</p>
  
  <pre><code>private Rectangle _window;
  public Rectangle Window
  {
      get { return _window;}
      set
      {
          if (/*condition*/)
              _window = value;
      }
  }
  </code></pre>