public void Set( object target, string val ) { var element = target as TextArea; if ( element != null ) { element.FontName = val; } }