Itenso.Rtf.Parser.RtfParserListenerStructureBuilder.DoGroupEnd C# (CSharp) Method

DoGroupEnd() protected method

protected DoGroupEnd ( ) : void
return void
        protected override void DoGroupEnd()
        {
            if ( openGroupStack.Count > 0 )
            {
                curGroup = (RtfGroup)openGroupStack.Pop();
            }
            else
            {
                if ( structureRoot != null )
                {
                    throw new RtfStructureException( Strings.MultipleRootLevelGroups );
                }
                structureRoot = curGroup;
                curGroup = null;
            }
        }