语言

Range 构造函数

定义

重载

名称 说明
Range(Position, Position)

初始化 Range 类的新实例。

Range(Int32, Int32, Int32, Int32)

初始化 Range 类的新实例。

Range(Position, Position)

初始化 Range 类的新实例。

public Range(Microsoft.Bot.Builder.LanguageGeneration.Position start, Microsoft.Bot.Builder.LanguageGeneration.Position end);
new Microsoft.Bot.Builder.LanguageGeneration.Range : Microsoft.Bot.Builder.LanguageGeneration.Position * Microsoft.Bot.Builder.LanguageGeneration.Position -> Microsoft.Bot.Builder.LanguageGeneration.Range
Public Sub New (start As Position, end As Position)

参数

start
Position

从一个文件开始 Position 。

end
Position

以文件结束 Position 。

适用于

Range(Int32, Int32, Int32, Int32)

初始化 Range 类的新实例。

public Range(int startLine, int startChar, int endLine, int endChar);
new Microsoft.Bot.Builder.LanguageGeneration.Range : int * int * int * int -> Microsoft.Bot.Builder.LanguageGeneration.Range
Public Sub New (startLine As Integer, startChar As Integer, endLine As Integer, endChar As Integer)

参数

startLine
Int32

文件中的起始行号。

startChar
Int32

起始字号出现在起始线上。

endLine
Int32

文件中的结尾行号。

endChar
Int32

结尾的字符数出现在结尾。

适用于