EditPoint2.Delete Yöntem (Object)
Metin belirtilen aralığı siler.
Ad alanı: EnvDTE80
Derleme: EnvDTE80 (EnvDTE80.dll içinde)
Sözdizimi
'Bildirim
Sub Delete ( _
PointOrCount As Object _
)
void Delete(
Object PointOrCount
)
void Delete(
[InAttribute] Object^ PointOrCount
)
abstract Delete :
PointOrCount:Object -> unit
function Delete(
PointOrCount : Object
)
Parametreler
- PointOrCount
Tür: System.Object
Gerekli.Ya da temsil eden bir TextPoint nesne veya karakter sayısı.
Notlar
PointOrCount Olan bir TextPoint nesnesi, Delete düzenleme noktası arasındaki metni siler ve PointOrCount.PointOrCount Bir tamsayı ise Delete metin düzenleme noktası üzerinden belirli sayıda düzenleme her satırın sonunda her zımni yeni satır sırası için bir ekleme noktasını, karakteri siler.
PointOrCount Negatif olan Delete nokta düzenlemeden önce metni siler.
Örnekler
Sub DeleteExample()
Dim objTextDoc As TextDocument
Dim objEditPt As EditPoint, iCtr As Integer
' Create a new text file.
DTE.ItemOperations.NewFile("General\Text File")
' Get a handle to the new document and create an EditPoint.
objTextDoc = DTE.ActiveDocument.Object("TextDocument")
objEditPt = objTextDoc.StartPoint.CreateEditPoint
' Insert ten lines of text.
For iCtr = 1 To 10
objeditpt.Insert("This is a test." & Chr(13))
Next iCtr
' Change the first letter of the fourth word of the fourth line.
objEditPt.StartOfDocument()
objEditPt.LineDown(3)
objEditPt.WordRight(3)
objEditPt.CharRight(2)
objEditPt.Charleft(2)
objeditpt.Delete(1)
objEditPt.Insert("p")
End Sub
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.