Udostępnij za pośrednictwem


Metoda EditPoint2.OutlineSection — (Object)

Tworzy konspektu sekcji, na podstawie edytowany punkt i punkt danego tekstu lub wartości.

Przestrzeń nazw:  EnvDTE80
Zestaw:  EnvDTE80 (w EnvDTE80.dll)

Składnia

'Deklaracja
Sub OutlineSection ( _
    PointOrCount As Object _
)
void OutlineSection(
    Object PointOrCount
)
void OutlineSection(
    [InAttribute] Object^ PointOrCount
)
abstract OutlineSection : 
        PointOrCount:Object -> unit 
function OutlineSection(
    PointOrCount : Object
)

Parametry

  • PointOrCount
    Typ: System.Object
    Wymagane.Albo TextPoint obiektu lub liczbę całkowitą reprezentującą liczbę znaków.

Uwagi

Jeśli PointOrCount jest 32-bitowa liczba całkowita, następnie OutlineSection tworzy sekcji konspektu w tekście z edytowany punkt na określoną liczbę znaków, po pkt Edycja.Implikowane każdy znak nowego wiersza na końcu każdego wiersza liczy się jako jeden znak.

Przykłady

Sub OutlineSectionExample()
   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.OutLineSection(10)       
End Sub

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

EditPoint2 Interfejs

Przeciążenie OutlineSection

Przestrzeń nazw EnvDTE80