共用方式為


ParserContext 類別

定義

public ref class ParserContext
public class ParserContext
type ParserContext = class
Public Class ParserContext
繼承
ParserContext

建構函式

ParserContext(ITextDocument, ParserBase, ParserBase, ParserBase, ErrorSink)

屬性

ActiveParser
CodeParser
CurrentBlock
CurrentCharacter
DesignTimeMode
EndOfFile
Errors
LastAcceptedCharacters
LastSpan
MarkupParser
NullGenerateWhitespaceAndNewLine
Source
WhiteSpaceIsSignificantToAncestorBlock

方法

AddSpan(Span)
CompleteParse()
EndBlock()

結束目前的區塊

IsWithin(BlockType)

取得布林值,指出目前區塊的任何上階是否為指定型別

OnError(RazorError)
OnError(SourceLocation, String, Int32, Object[])
OnError(SourceLocation, String, Int32)
StartBlock()

啟動區塊

StartBlock(BlockType)

啟動指定型別的區塊

SwitchActiveParser()

適用於