Compartir a través de


EditPoint.OutlineSection (Método)

Crea una sección de esquematización basándose en un punto de edición y el valor o punto de texto determinados.

Espacio de nombres:  EnvDTE
Ensamblado:  EnvDTE (en EnvDTE.dll)

Sintaxis

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

Parámetros

  • PointOrCount
    Tipo: System.Object
    Obligatorio.Objeto TextPoint o número entero que representa el número de caracteres.

Comentarios

Si el valor del parámetro PointOrCount es un entero de 32 bits, el método OutlineSection crea una sección de esquematización en el texto desde un punto de edición hasta el número de caracteres especificado situado detrás de dicho punto. Cada carácter de nueva línea implícito situado al final de cada línea se considera como un solo carácter.

Ejemplos

Sub OutlineSectionExample()
    ' Creates a text document with some text,
    ' and then puts the first two lines into
    ' outline view.
    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
    ' Go to top of document and outline the first
    ' 31 characters (the first two lines).
    objEditPt.StartOfDocument()
    objEditPt.OutlineSection(31)
End Sub

Seguridad de .NET Framework

Vea también

Referencia

EditPoint Interfaz

EnvDTE (Espacio de nombres)

Otros recursos

Cómo: Compilar y ejecutar los ejemplos de código del modelo de objetos de automatización