//
//
//
//
// $Revision$
//
using System.Drawing;
namespace ICSharpCode.TextEditor.Document
{
///
/// An interface representing a portion of the current selection.
///
public interface ISelection
{
TextLocation StartPosition {
get;
set;
}
TextLocation EndPosition {
get;
set;
}
int Offset {
get;
}
int EndOffset {
get;
}
int Length {
get;
}
///
/// Returns true, if the selection is rectangular
///
bool IsRectangularSelection {
get;
}
///
/// Returns true, if the selection is empty
///
bool IsEmpty {
get;
}
///
/// The text which is selected by this selection.
///
string SelectedText {
get;
}
bool ContainsOffset(int offset);
bool ContainsPosition(TextLocation position);
}
}