Q:

Assign values on multi-properties to a object

I have a object which it was initialized before in a base class.  In inherited class, I use this object and assign values on multi-properties to it.  Example:
this. Chart. X = 10;
this. Chart. Y = 10;
this. Chart. Width = 20;
this. Chart. Height = 20;
this. Chart. Background = Color. Red;

However, I must repeat "this. Chart" many times.  How to avoid this.  Note that I don't want to re-create this object again because in the base class, it was initialized with some common values. 
Thanks. 

A:

You could make a set of extension methods for Chart that implement a fluent interface.  It will get rid of some of the repeated code, so your example could looks something like:
this. Chart. X(10).Y(10).Width(20).Height(20).Background(Color. Red);

And you don't even need this. 