ICSharpCode.TextEditor.Document.SelectionManager.GetSelectionAt C# (CSharp) 메소드

GetSelectionAt() 공개 메소드

Returns a ISelection object giving the selection in which the offset points to.
public GetSelectionAt ( int offset ) : ISelection
offset int
리턴 ISelection
        public ISelection GetSelectionAt(int offset)
        {
            foreach (ISelection s in selectionCollection) {
                if (s.ContainsOffset(offset)) {
                    return s;
                }
            }
            return null;
        }