Have a look at example below:
TextObject txtObj;
txtObj = (TextObject)(rd.ReportDefinition.ReportObjects["Text2"]);
if (txtObj != null)
{
txtObj.ObjectFormat.EnableCanGrow = true;
txtObj.ObjectFormat.EnableKeepTogether = true;
txtObj.ObjectFormat.HorizontalAlignment = Alignment.LeftAlign;
}