コード例 #1
0
        private bool IsMemberSelected(CodeElement2 member)
        {
            TextPoint memberStart = member.StartPoint;
            TextPoint memberEnd   = member.EndPoint;

            bool result = (memberStart.GreaterThan(this.selectionStart) || memberStart.EqualTo(this.selectionStart)) &&
                          (memberEnd.LessThan(this.selectionEnd) || memberEnd.EqualTo(this.selectionEnd));

            return(result);
        }