<$BlogRSDUrl$>

Friday, January 23, 2004

Recusive properties



Look close!

public int CurrentLine
{
get
{
return GetLineFromIndex(caretindex);
}
set
{
if (value < 0)
{
CurrentLine = 0;
}
else if (value < Count)
{
int ci = LineColumnIndex;
CaretIndex = GetCaretIndexFromLine(value);
LineColumnIndex = ci;
}
else
{
CurrentLine = Count - 1;
}
}
}