Will wildcards work on objects?
<p>Is it possible to use wild cards in a parameter? I have this code which repeats for the properties TextLine1,TextLine2, TextLine3, and TextLine 4. Is it possible to replace the number with a wildcard and so that i can pass the number based on user input.</p>

<p>TextLine1, TextLine2, TextLine3, and TextLine 4 are properties of the class ReportHeader.</p>

<pre><code> public Control returnTextLine(ReportHeader TextLineObj,int i)
    {

        System.Windows.Forms.Label lblTextLine = new System.Windows.Forms.Label();
        lblTextLine.Name = TextLineObj.**TextLine1**.Name;
        lblTextLine.Font = TextLineObj.**TextLine1**.Font;
        lblTextLine.ForeColor = TextLineObj.**TextLine1**.ForeColor;
        lblTextLine.BackColor = TextLineObj.**TextLine1**.BackgroundColor;
        lblTextLine.Text = TextLineObj.**TextLine1**.Text;
        int x = TextLineObj.**TextLine1**.x;
        int y = TextLineObj.**TextLine1**.y;
        lblTextLine.Location = new Point(x, y);


        return lblTextLine;
    }
</code></pre>

<p>Please Help...</p>
