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。 |
備註
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。