مشاركة عبر


EditPoint2.LineDown أسلوب (Int32)

نقل يؤشر تحرير استمرار المحدد عدد الأسطر.

مساحة الاسم:  EnvDTE80
التجميع:  EnvDTE80 (في EnvDTE80.dll)

بناء الجملة

'إقرار
Sub LineDown ( _
    Count As Integer _
)
void LineDown(
    int Count
)
void LineDown(
    [InAttribute] int Count
)
abstract LineDown : 
        Count:int -> unit 
function LineDown(
    Count : int
)

المعلمات

  • Count
    النوع: System.Int32
    اختياري.عدد الأسطر إلى تحريك نقطة التحرير.يكون الطول الافتراضي هو 1.

التطبيقات

EditPoint.LineDown(Int32)

ملاحظات

في حالة انتهاء مستند هو بلوغ قبل عدد معين من الأسطر، تبقى النقطة في إنهاء مستند.

إذا Countهو سالبة، ثم LineDownيقوم بشكل مماثل ل LineUp.

أمثلة

Sub LineDownExample()
   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
   objEditPt.StartOfDocument()
   objEditPt.LineDown(5)
End Sub

أمن NET Framework.

راجع أيضًَا

المرجع

EditPoint2 واجهة

EditPoint2 الأعضاء

LineDown التحميل الزائد

EnvDTE80 مساحة الاسم