Compartir a través de


Breakpoint2.FileColumn (Propiedad)

Obtiene la ubicación del carácter dentro de una línea en un archivo donde se establece el punto de interrupción.

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

Sintaxis

'Declaración
ReadOnly Property FileColumn As Integer
    Get
int FileColumn { get; }
property int FileColumn {
    int get ();
}
abstract FileColumn : int
function get FileColumn () : int

Valor de propiedad

Tipo: System.Int32
Número entero que representa la ubicación del carácter.

Implementaciones

Breakpoint.FileColumn

Comentarios

Obtiene la ubicación del carácter (la columna) dentro de una línea en un archivo donde se establece el punto de interrupción. Este valor se especifica en el cuadro Carácter del cuadro de diálogo Archivo, Nuevo punto de interrupción.

Ejemplos

En el siguiente ejemplo se muestra cómo utilizar la propiedad FileColumn.

Para probar esta propiedad:

  1. Establezca un punto de interrupción en la aplicación de destino.

  2. Ejecute el complemento.

public static void FileColumn(EnvDTE80.DTE2 dte)
{
    // Setup debug Output window.
    Window w = (Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);
    w.Visible = true;
    OutputWindow ow = (OutputWindow)w.Object;
    OutputWindowPane owp = ow.OutputWindowPanes.Add("FileColumn property: ");
    owp.Activate();

    // dte is a reference to the DTE2 object passed to you by the
    // OnConnection method that you implement when you create an Add-in.
    EnvDTE80.Debugger2 debugger = (EnvDTE80.Debugger2)dte.Debugger;
    owp.OutputString("Breakpoint in the file " + debugger.Breakpoints.Item(1).File);
    owp.OutputString(" on line " +
                     debugger.Breakpoints.Item(1).FileLine.ToString() + " column ");
    owp.OutputString(debugger.Breakpoints.Item(1).FileColumn.ToString() + " is ");
    owp.OutputString(debugger.Breakpoints.Item(1).Enabled ? "enabled." : "disabled.");
    owp.OutputString("\nThis breakpoint is in the function: " +
                     debugger.Breakpoints.Item(1).FunctionName);
}

Seguridad de .NET Framework

Vea también

Referencia

Breakpoint2 Interfaz

FileColumn (Sobrecarga)

EnvDTE80 (Espacio de nombres)

Otros recursos

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