Microsoft.VisualStudio.Language.Spellchecker.LineProgress.StartNaturalText C# (CSharp) Method

StartNaturalText() public method

public StartNaturalText ( ) : void
return void
        public void StartNaturalText()
        {
            Debug.Assert(naturalTextStart == -1, "Called StartNaturalText() twice without call to EndNaturalText()?");
            naturalTextStart = _linePosition;
        }

Usage Example

Example #1
0
        private void ScanDocComment(LineProgress p)
        {
            p.StartNaturalText();
            while (!p.EndOfLine)
            {
                if (p.Char() == '<')
                {
                    p.EndNaturalText();

                    p.Advance();
                    p.State = State.DocCommentXml;
                    ScanDocCommentXml(p);

                    p.StartNaturalText();
                }
                else
                {
                    p.Advance();
                }
            }

            // End of line.  Record what we have and revert to default state.
            p.EndNaturalText();
            p.State = State.Default;
        }
All Usage Examples Of Microsoft.VisualStudio.Language.Spellchecker.LineProgress::StartNaturalText