In C# you have special classes like String that work like this

Code:
String MyString = "    This is an test string   ";
Console.WriteLine(MyString.Trim());
It class like the String class is created like this:
http://www.codeproject.com/useritems...t_operator.asp

Is it possible to use something like this in Delphi ((win32) 2005/turbo)? I now something like this is possible for arrays. E.g. MyObject[i] instead of MyObject.Lines[i].

Thanks for your answers in advance.