> Hi
>
[quoted text clipped - 13 lines]
> Thanks
> Khamis
thanks, found the way of casting:
EnvDTE.Documents docs = _applicationObject.Documents;
EnvDTE.Document doc;
doc = docs.Open(sFile, "Auto", false);
TextSelection sel = (TextSelection)doc.Selection;
sel.GotoLine(10, false);
sel.CharRight(false, 10);
khamis

Signature
Try Code-Navigator on http://www.codenav.com
a source code navigating, analysis and developing tool.
It supports following languages:
* C/C++
* Java
* .NET (including CSharp, VB.Net and other .NET components)
* Classic Visual Basic
* PHP, HTML, XML, ASP, CSS
* Tcl/Tk,
* Perl
* Python
* SQL,
* m4 Preprocessor
* Cobol