共用方式為


RichEditTextDocument.GetRange(Int32, Int32) 方法

定義

擷取檔使用中本文的新文字範圍。

public:
 virtual ITextRange ^ GetRange(int startPosition, int endPosition) = GetRange;
ITextRange GetRange(int const& startPosition, int const& endPosition);
public ITextRange GetRange(int startPosition, int endPosition);
function getRange(startPosition, endPosition)
Public Function GetRange (startPosition As Integer, endPosition As Integer) As ITextRange

參數

startPosition
Int32

int

相對於本文開頭的新文字範圍開始位置。

endPosition
Int32

int

新文字範圍的結束位置。

傳回

新的文字範圍。

適用於