コード例 #1
0
        public PermanentAnchor(FileName fileName, int line, int column)
        {
            if (fileName == null)
            {
                throw new ArgumentNullException("fileName");
            }
            if (line < 1)
            {
                throw new ArgumentOutOfRangeException("line");
            }
            if (column < 1)
            {
                throw new ArgumentOutOfRangeException("column");
            }

            Gui.WorkbenchSingleton.AssertMainThread();

            this.fileName = fileName;
            this.line     = line;
            this.column   = column;
            PermanentAnchorService.AddAnchor(this);
        }
コード例 #2
0
        public PermanentAnchor(FileName fileName, int line, int column)
        {
            if (fileName == null)
            {
                throw new ArgumentNullException("fileName");
            }
            if (line < 1)
            {
                throw new ArgumentOutOfRangeException("line");
            }
            if (column < 1)
            {
                throw new ArgumentOutOfRangeException("column");
            }

            SD.MainThread.VerifyAccess();

            this.fileName = fileName;
            this.line     = line;
            this.column   = column;
            PermanentAnchorService.AddAnchor(this);
        }