共用方式為


SnapshotPoint.Add 方法

在這個點的指定位移上建立新的快照點。

命名空間:  Microsoft.VisualStudio.Text
組件:  Microsoft.VisualStudio.Text.Data (在 Microsoft.VisualStudio.Text.Data.dll 中)

語法

'宣告
Public Function Add ( _
    offset As Integer _
) As SnapshotPoint
public SnapshotPoint Add(
    int offset
)
public:
SnapshotPoint Add(
    int offset
)
member Add : 
        offset:int -> SnapshotPoint
public function Add(
    offset : int
) : SnapshotPoint

參數

  • offset
    類型:Int32

    新點的位移。

傳回值

類型:Microsoft.VisualStudio.Text.SnapshotPoint
新的快照集點。

例外狀況

例外狀況 條件
ArgumentOutOfRangeException

新的重點是小於零或大於Snapshot.Length。

備註

SnapshotPoint

.NET Framework 安全性

請參閱

參考

SnapshotPoint 結構

Microsoft.VisualStudio.Text 命名空間