internal static class CodePaneExtensions
{
public static Selection GetSelection(this CodePane code)
{
int startLine;
int endLine;
int startColumn;
int endColumn;
code.GetSelection(out startLine, out startColumn, out endLine, out endColumn);
return new Selection(startLine, startColumn, endLine, endColumn);
}
}