ICSharpCode.AvalonEdit.Editing.Selection.Contains C# (CSharp) Method

Contains() public method

Gets whether the specified offset is included in the selection.
public Contains ( int offset ) : bool
offset int
return bool
        public virtual bool Contains(int offset)
        {
            if (this.IsEmpty)
                return false;
            if (this.SurroundingSegment.Contains(offset)) {
                foreach (ISegment s in this.Segments) {
                    if (s.Contains(offset)) {
                        return true;
                    }
                }
            }
            return false;
        }